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

@@ -575,7 +575,7 @@ func intFromAny(v interface{}) int {
func isPGLikeSource(dbType string) bool {
switch normalizeMigrationDBType(dbType) {
case "postgres", "kingbase", "highgo", "vastbase", "opengauss", "duckdb":
case "postgres", "kingbase", "highgo", "vastbase", "opengauss", "gaussdb", "duckdb":
return true
default:
return false
@@ -584,7 +584,7 @@ func isPGLikeSource(dbType string) bool {
func isPGLikeSameFamilyDDLType(dbType string) bool {
switch normalizeMigrationDBType(dbType) {
case "postgres", "kingbase", "highgo", "vastbase", "opengauss":
case "postgres", "kingbase", "highgo", "vastbase", "opengauss", "gaussdb":
return true
default:
return false
@@ -1360,7 +1360,7 @@ func mapPGLikeDefaultToMySQL(col connection.ColumnDefinition, targetType string)
func isPGLikeTarget(dbType string) bool {
switch normalizeMigrationDBType(dbType) {
case "postgres", "kingbase", "highgo", "vastbase", "opengauss", "duckdb":
case "postgres", "kingbase", "highgo", "vastbase", "opengauss", "gaussdb", "duckdb":
return true
default:
return false