fix(sidebar): support dropping schema for Dameng database

This commit is contained in:
GIWTO authored and GitHub committed 2026-08-01 00:19:04 +08:00
1 parent caa53596d9
commit 743af84e6f
12 files changed
+55 -5

No files matched your search

@@ -119,6 +119,13 @@ export function buildDropSchemaSql(options: SchemaNameSqlOptions): Promise<strin
return api.buildDropSchemaSql(options);
}
export function damengDropSchemaExecutionSchema(username: string | null | undefined, targetSchema: string): string | null {
const executionSchema = username?.trim();
const normalizedTargetSchema = targetSchema.trim().toUpperCase();
if (!executionSchema || !normalizedTargetSchema || executionSchema.toUpperCase() === normalizedTargetSchema) return null;
return executionSchema;
}
export function supportsSchemaComment(databaseType?: DatabaseType): boolean {
return ["postgres", "gaussdb", "kwdb", "kingbase", "highgo", "uxdb", "vastbase", "opengauss", "yashandb"].includes(databaseType || "");
}