KingbaseES
Data source: KingbaseESProfessional Edition+Introduction
KingbaseES can be used as the NocoBase main database. It stores NocoBase system-table data and business data in the main data source. Configure it when deploying NocoBase; it cannot be deleted after the application is running.
To connect an existing KingbaseES database as an external database, see External KingbaseES.
Only KingbaseES databases running in PostgreSQL compatibility mode are supported.
Installation
Use as the main database
Follow Install a NocoBase application. The main difference is the database environment variables.
Environment variables
Add or update these database variables in .env:
Docker installation
APP_KEY is used for user tokens and similar application secrets. Changing it invalidates existing tokens; use a random value and store it safely. The kingbase service is intended only for local evaluation. DB_MODE must be pg.
Install with create-nocobase-app
Use as an external database
For configuration entry points, connection parameters, and synchronization rules when using KingbaseES as an external database, see External KingbaseES.
Usage
KingbaseES main data sources use PostgreSQL compatibility mode. For everyday management, see PostgreSQL main data source.
- Select or enter KingbaseES connection settings when deploying NocoBase.
- After NocoBase starts, open Data source management, select Main, and manage collections and fields.
- Use Sync from database to connect tables that already exist in the main database.
- Use Collections and Collection fields to choose Field types and Field interfaces.
Field type mapping
When you create a field in NocoBase, NocoBase creates the corresponding KingbaseES field. When you synchronize an existing table, NocoBase applies PostgreSQL-compatible mapping to select a Field type and Field interface.
Unsupported KingbaseES types are shown separately in field configuration. They require development support before they can be used as normal NocoBase fields.
For common configuration, see Main database.

