fix(opengauss): open table structure editor

This commit is contained in:
t8y2 committed 2026-06-02 18:50:00 +08:00
1 parent e20669ddcf
commit cac90c7b62
5 files changed
+181 -51

No files matched your search

@@ -167,7 +167,12 @@ const canOpenDiagram = computed(() => !!props.database && supportsSchemaDiagram(
const canOpenTableImport = computed(() => !!props.database && supportsTableImport(props.connection.db_type));
const supportsTruncateTable = computed(() => supportsTableTruncate(props.connection.db_type));
const sourceDialect = computed<"mysql" | "postgres" | "sqlserver">(() => {
if (props.connection.db_type === "postgres" || props.connection.db_type === "gaussdb") return "postgres";
if (
props.connection.db_type === "postgres" ||
props.connection.db_type === "gaussdb" ||
props.connection.db_type === "opengauss"
)
return "postgres";
if (props.connection.db_type === "sqlserver") return "sqlserver";
return "mysql";
});
@@ -178,6 +183,9 @@ const sourceFormatDialect = computed<SqlFormatDialect>(() => {
case "sqlite":
case "sqlserver":
return props.connection.db_type;
case "gaussdb":
case "opengauss":
return "postgres";
default:
return "generic";
}