feat(export): add table selection to database export

This commit is contained in:
t8y2
2026-05-15 18:56:23 +08:00
parent cb3157c5ae
commit 048f629d21
12 changed files with 215 additions and 5 deletions
+8
View File
@@ -0,0 +1,8 @@
export function buildSelectedTablesPayload(allTables: string[], selectedTables: string[]): string[] | undefined {
if (allTables.length > 0 && selectedTables.length === allTables.length) {
return undefined;
}
const selected = new Set(selectedTables);
return allTables.filter((table) => selected.has(table));
}
+1
View File
@@ -776,6 +776,7 @@ export interface DatabaseExportRequest {
database: string;
schema: string;
filePath: string;
selectedTables?: string[];
includeStructure: boolean;
includeData: boolean;
includeObjects: boolean;