feat: add get_table_ddl command and integrate DDL functionality in DataGrid

This commit is contained in:
t8y2
2026-04-30 02:12:27 +08:00
parent 83a122f386
commit 2ab2a81e19
5 changed files with 255 additions and 4 deletions
+4
View File
@@ -85,6 +85,10 @@ export async function listTriggers(connectionId: string, database: string, schem
return invoke("list_triggers", { connectionId, database, schema, table });
}
export async function getTableDdl(connectionId: string, database: string, schema: string, table: string): Promise<string> {
return invoke("get_table_ddl", { connectionId, database, schema, table });
}
export async function saveConnections(configs: ConnectionConfig[]): Promise<void> {
return invoke("save_connections", { configs });
}