fix(export): release db backup snapshot only on terminal state

This commit is contained in:
zipg authored and GitHub committed 2026-08-07 13:44:13 +08:00
1 parent f9e93b356f
commit 7d2a5d3355
8 files changed
+59 -12

No files matched your search

@@ -93,6 +93,10 @@ export function generateDatabaseExportId(): string {
return uuid();
}
export function shouldUseDatabaseBackupSnapshot(databaseType: DatabaseType | undefined, includeData: boolean, desktopRuntime: boolean): boolean {
return desktopRuntime && includeData && (databaseType === "mysql" || databaseType === "postgres");
}
export async function runDatabaseExportUntilTerminal(request: api.DatabaseExportRequest, onProgress: (progress: api.ExportProgress) => void): Promise<api.ExportProgress> {
return new Promise<api.ExportProgress>((resolve, reject) => {
api