fix: sort tables by FK dependency in transfer and export
This commit is contained in:
1 parent
71db24813e
commit
c4c427fb67
11 files changed
+292
-6
No files matched your search
@@ -1056,6 +1056,18 @@ export async function cancelTransfer(transferId: string): Promise<void> {
|
||||
return post("/api/transfer/cancel", { transferId });
|
||||
}
|
||||
|
||||
export interface SortTablesByFkOptions {
|
||||
connectionId: string;
|
||||
database: string;
|
||||
schema: string;
|
||||
tables: string[];
|
||||
parentsFirst: boolean;
|
||||
}
|
||||
|
||||
export async function sortTablesByFkDependency(options: SortTablesByFkOptions): Promise<string[]> {
|
||||
return post("/api/transfer/sort-tables-by-fk", options);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Table File Import
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user