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

@@ -115,6 +115,20 @@ func TestResolveDDLDBType_IRISTypeAlias(t *testing.T) {
}
}
func TestResolveDDLDBType_GoldenDBUsesMySQLDialect(t *testing.T) {
t.Parallel()
if got := resolveDDLDBType(connection.ConnectionConfig{Type: "goldendb"}); got != "mysql" {
t.Fatalf("expected goldendb type to resolve to mysql, got %q", got)
}
if got := resolveDDLDBType(connection.ConnectionConfig{Type: "custom", Driver: "greatdb"}); got != "mysql" {
t.Fatalf("expected greatdb custom driver to resolve to mysql, got %q", got)
}
if got := resolveDDLDBType(connection.ConnectionConfig{Type: "custom", Driver: "gdb"}); got != "mysql" {
t.Fatalf("expected gdb custom driver to resolve to mysql, got %q", got)
}
}
func TestNormalizeSchemaAndTableByType_PGLikeQuotedQualifiedName(t *testing.T) {
t.Parallel()