feat(backup): support custom backup file name templates and path preview

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-09-10 00:29:15 +08:00
1 parent 38be5ba35c
commit ce3bd1c8ed
31 files changed
+744 -125

No files matched your search

+1 -1
View File
@@ -765,7 +765,7 @@ export async function revealPathInFileManager(_path: string): Promise<void> {
throw new Error("Reveal in file manager is only available in the desktop app.");
}
export async function deleteDatabaseBackupFiles(_paths: string[]): Promise<number> {
export async function deleteDatabaseBackupFiles(_paths: string[], _allowedRoots: string[] = []): Promise<number> {
throw new Error("Database backup file management is only available in the desktop app.");
}
+3 -2
View File
@@ -2427,8 +2427,8 @@ export async function revealPathInFileManager(path: string): Promise<void> {
return invoke("reveal_path_in_file_manager", { path });
}
export async function deleteDatabaseBackupFiles(paths: string[]): Promise<number> {
return invoke("delete_database_backup_files", { paths });
export async function deleteDatabaseBackupFiles(paths: string[], allowedRoots: string[] = []): Promise<number> {
return invoke("delete_database_backup_files", { paths, allowedRoots });
}
export async function isSqliteDatabaseFile(path: string): Promise<boolean> {
@@ -4862,6 +4862,7 @@ export interface DatabaseExportRequest {
dropTableIfExists?: boolean;
omitAutoIncrement?: boolean;
failOnError?: boolean;
preventOverwrite?: boolean;
outputCompression?: "none" | "gzip";
snapshotSessionId?: string;
batchSize: number;