mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-01 16:28:46 +00:00
feat(export): add table selection to database export
This commit is contained in:
@@ -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));
|
||||
}
|
||||
@@ -776,6 +776,7 @@ export interface DatabaseExportRequest {
|
||||
database: string;
|
||||
schema: string;
|
||||
filePath: string;
|
||||
selectedTables?: string[];
|
||||
includeStructure: boolean;
|
||||
includeData: boolean;
|
||||
includeObjects: boolean;
|
||||
|
||||
Reference in New Issue
Block a user