KingbaseES
Data source: KingbaseESProfessional Edition+Introduction
KingbaseES can be connected to NocoBase as an external database. NocoBase reads tables, fields, and views from KingbaseES and makes them available as collections in the external data source.
Unlike a main data source, the actual schema of an external KingbaseES database continues to be maintained by the original business system, database client, or migration scripts. NocoBase reads the schema, stores field metadata, and lets you configure blocks, permissions, workflows, and APIs.
External KingbaseES is suitable when you need to:
- Connect an existing KingbaseES business database in a government, enterprise, intranet, or localized environment
- Build management pages in NocoBase without migrating historical data
- Apply permissions, workflow processing, data corrections, or reporting to existing tables
- Keep the database schema maintained by DBAs, migration scripts, or the original system
KingbaseES is supported as an external database only in PostgreSQL compatibility mode. If the database does not use PostgreSQL compatibility mode, NocoBase cannot read its schema and field types through the current plugin.
Plugin installation
This is a commercial plugin. For activation instructions, see the Commercial plugin activation guide.
Add a data source
In Data source management, click Add new, select KingbaseES, and then enter the connection details.

Common connection settings are as follows:
When KingbaseES contains many objects, narrow the scope through Schema, Table prefix, and Collections first. Connecting only the tables and views used by the current application keeps permissions, page building, and synchronization easier to maintain.
Select collections
After entering connection details, click Load Collections to read available tables and views from KingbaseES. The results depend on the connection account, Schema, Table prefix, and Collections settings.
By default, Add all collections is enabled, which connects all tables and views in the current scope. To connect only selected objects, disable Add all collections and select the required tables or views from the list.

An external data source can connect up to 500 tables or views at a time. When KingbaseES contains many objects, narrow the scope through Schema, Table prefix, or Collections first.
Synchronize and configure fields
The external KingbaseES schema is maintained in the database. NocoBase does not create fields, change field types, or delete actual fields in the external database.
When the KingbaseES schema changes, run Sync from database from the data source to read collection and field metadata again. Synchronization updates the collections, fields, primary keys, unique keys, and field-type mapping metadata stored in NocoBase. It does not delete actual KingbaseES tables or data.
After fields are synchronized, you can configure their titles, Field type, and Field interface in NocoBase. NocoBase relationship fields are also stored as relationship metadata in NocoBase and do not automatically add actual foreign-key columns to KingbaseES tables.
Field type mapping
NocoBase identifies KingbaseES types according to PostgreSQL compatibility rules and automatically maps them to appropriate Field types and Field interfaces. You can adjust the display interface in field settings.
Unsupported KingbaseES types are displayed separately in field settings. They require development support before they can be used as regular NocoBase fields.
Primary key and Record unique key
Collections used for block display and editing should have a primary key or unique field. NocoBase uses the primary key as the Record unique key when available.
For views, tables without a primary key, or composite-primary-key tables, configure Record unique key manually in the collection settings. Without a usable identifier, blocks might not view, edit, or delete records correctly.

Related links
- External databases - General external-database configuration and management.
- Data source management - Data-source entry points and management.
- Collection fields - Field types and field mapping.

