logologo
시작
가이드
개발
플러그인
API
English
简体中文
日本語
한국어
Deutsch
Français
Español
Português
Русский
Italiano
Türkçe
Українська
Tiếng Việt
Bahasa Indonesia
ไทย
Polski
Nederlands
Čeština
العربية
עברית
हिन्दी
Svenska
시작
가이드
개발
플러그인
API
logologo
개요

데이터 소스

데이터 소스 관리
메인 데이터 소스

외부 데이터 소스 (데이터베이스)

소개
외부 MySQL
외부 MariaDB
외부 PostgreSQL
외부 MSSQL
외부 Oracle
메인 vs. 외부 데이터베이스 비교
REST API 데이터 소스
KingbaseES 데이터 소스

데이터 테이블

개요
일반 테이블
상속 테이블
파일 테이블
트리 테이블
캘린더 테이블
댓글 테이블
표현식 테이블
SQL 테이블
데이터베이스 뷰

테이블 필드

개요
필드 유효성 검사

기본 유형

한 줄 텍스트
여러 줄 텍스트
전화번호
이메일
URL
정수
숫자
백분율
비밀번호
색상
아이콘

선택 유형

체크박스
드롭다운 (단일 선택)
드롭다운 (다중 선택)
라디오 버튼
체크박스

멀티미디어

Markdown
Markdown(Vditor)
리치 텍스트
첨부 파일 (관계)
첨부 파일 (URL)

날짜 & 시간

개요
날짜/시간 (타임존 포함)
날짜/시간 (타임존 미포함)
Unix 타임스탬프
날짜 (시간 미포함)
시간

도형

점
선
원
다각형

고급 유형

UUID
Nano ID
정렬
계산 공식
자동 번호
JSON
테이블 선택기
암호화

시스템 정보

생성일
마지막 수정일
생성자
마지막 수정자
스페이스
Table OID

관계 유형

개요
일대일
일대다
다대일
다대다
다대다 (배열)

개발

개요
Previous PageREST API 데이터 소스
Next Page개요
TIP

이 문서는 AI로 번역되었습니다. 부정확한 내용이 있을 경우 영어 버전을 참조하세요

#데이터 소스 - KingbaseES

This feature is provided by the plugin «데이터 소스: KingbaseES», included in Professional Edition and above commercial editions

#소개

KingbaseES 데이터베이스를 데이터 소스로 사용하여 주 데이터베이스 또는 외부 데이터베이스로 활용할 수 있습니다.

WARNING

현재는 pg 모드로 실행되는 KingbaseES 데이터베이스만 지원합니다.

#설치

#주 데이터베이스로 사용하기

설치 과정은 설치 문서를 참고해 주세요. 주요 차이점은 환경 변수에 있습니다.

#환경 변수

.env 파일을 수정하여 다음 환경 변수 설정을 추가하거나 변경합니다.

# 실제 상황에 맞게 DB 관련 파라미터를 조정하세요.
DB_DIALECT=kingbase
DB_HOST=localhost
DB_PORT=54321
DB_DATABASE=kingbase
DB_USER=nocobase
DB_PASSWORD=nocobase

#Docker 설치

networks:
  nocobase:
    driver: bridge

services:
  app:
    image: registry.cn-shanghai.aliyuncs.com/nocobase/nocobase:latest
    restart: always
    networks:
      - nocobase
    depends_on:
      - kingbase
    environment:
      # Application key for generating user tokens, etc.
      # Changing APP_KEY invalidates old tokens
      # Use a random string and keep it confidential
      - APP_KEY=your-secret-key
      # Database type
      - DB_DIALECT=kingbase
      # Database host, replace with existing database server IP if needed
      - DB_HOST=kingbase
      - DB_PORT=54321
      # Database name
      - DB_DATABASE=kingbase
      # Database user
      - DB_USER=nocobase
      # Database password
      - DB_PASSWORD=nocobase
      # Timezone
      - TZ=UTC
    volumes:
      - ./storage:/app/nocobase/storage
    ports:
      - "11000:80"

  # Kingbase service for testing purposes only
  kingbase:
    image: registry.cn-shanghai.aliyuncs.com/nocobase/kingbase:v009r001c001b0030_single_x86
    platform: linux/amd64
    restart: always
    privileged: true
    networks:
      - nocobase
    volumes:
      - ./storage/db/kingbase:/home/kingbase/userdata
    environment:
      ENABLE_CI: no # Must be set to no
      DB_USER: nocobase
      DB_PASSWORD: nocobase
      DB_MODE: pg  # pg only
      NEED_START: yes
    command: ["/usr/sbin/init"]

#create-nocobase-app을 이용한 설치

yarn create nocobase-app my-nocobase-app -d kingbase \
   -e DB_HOST=localhost \
   -e DB_PORT=54321 \
   -e DB_DATABASE=kingbase \
   -e DB_USER=nocobase \
   -e DB_PASSWORD=nocobase \
   -e TZ=Asia/Shanghai

#외부 데이터베이스로 사용하기

설치 또는 업그레이드 명령을 실행합니다.

yarn nocobase install
# 또는
yarn nocobase upgrade

플러그인 활성화

20241024121815

#사용 가이드

  • 주 데이터베이스: 주 데이터 소스를 참고하세요.
  • 외부 데이터베이스: 데이터 소스 / 외부 데이터베이스를 확인하세요.