feat(gaussdb): 新增 GaussDB 数据库连接支持

Refs #497
This commit is contained in:
Syngnat
2026-06-13 19:34:52 +08:00
parent f3dfffb8d1
commit d2f68acae8
70 changed files with 717 additions and 73 deletions

View File

@@ -167,7 +167,7 @@ func normalizeSchemaAndTable(dbType string, dbName string, tableName string) (st
}
switch normalizedType {
case "postgres", "kingbase", "highgo", "vastbase", "opengauss":
case "postgres", "kingbase", "highgo", "vastbase", "opengauss", "gaussdb":
return "public", rawTable
case "duckdb":
return "main", rawTable
@@ -186,7 +186,7 @@ func qualifiedNameForQuery(dbType string, schema string, table string, original
}
switch normalizeMigrationDBType(dbType) {
case "postgres", "kingbase", "highgo", "vastbase", "opengauss":
case "postgres", "kingbase", "highgo", "vastbase", "opengauss", "gaussdb":
s := strings.TrimSpace(schema)
if s == "" {
s = "public"