feat(goldendb): 新增 GoldenDB 数据库连接支持

Refs #477
This commit is contained in:
Syngnat
2026-06-13 21:42:18 +08:00
parent 0ff17dc27c
commit 12fbc7ecf4
39 changed files with 324 additions and 34 deletions

View File

@@ -30,6 +30,24 @@ describe('dataSourceCapabilities', () => {
});
});
it('treats GoldenDB as an editable MySQL-family datasource with database-level DDL actions', () => {
expect(getDataSourceCapabilities({ type: 'goldendb' })).toMatchObject({
type: 'goldendb',
supportsQueryEditor: true,
supportsSqlQueryExport: true,
supportsCopyInsert: true,
supportsCreateDatabase: true,
supportsRenameDatabase: false,
supportsDropDatabase: true,
forceReadOnlyQueryResult: false,
});
expect(getDataSourceCapabilities({ type: 'custom', driver: 'greatdb' })).toMatchObject({
type: 'goldendb',
supportsQueryEditor: true,
supportsCopyInsert: true,
});
});
it('keeps StarRocks as an independent SQL datasource capability', () => {
expect(getDataSourceCapabilities({ type: 'starrocks' })).toMatchObject({
type: 'starrocks',