feat(backup): support custom backup file name templates and path preview
This commit is contained in:
31 files changed
+744
-125
No files matched your search
@@ -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.");
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user