1 parent
f23a9e15d5
commit
a0de029a23
8 files changed
+452
-39
No files matched your search
@@ -124,6 +124,7 @@ export async function reinstallJre(jreKey?: string, operationId?: string) {
|
||||
export const uninstallJre = forward("uninstallJre");
|
||||
export const listenAgentInstallProgress = forward("listenAgentInstallProgress");
|
||||
export const loadSavedSqlLibrary = forward("loadSavedSqlLibrary");
|
||||
export const loadSavedSqlFilesForSync = forward("loadSavedSqlFilesForSync");
|
||||
export const loadSavedSqlFile = forward("loadSavedSqlFile");
|
||||
export const saveSavedSqlFolder = forward("saveSavedSqlFolder");
|
||||
export const deleteSavedSqlFolder = forward("deleteSavedSqlFolder");
|
||||
|
||||
@@ -651,6 +651,10 @@ export async function loadSavedSqlLibrary(): Promise<SavedSqlLibrary> {
|
||||
return get("/api/saved-sql");
|
||||
}
|
||||
|
||||
export async function loadSavedSqlFilesForSync(): Promise<SavedSqlFile[]> {
|
||||
throw new Error("SQL directory sync is only available in the desktop app.");
|
||||
}
|
||||
|
||||
export async function loadSavedSqlFile(id: string): Promise<SavedSqlFile | null> {
|
||||
return get(`/api/saved-sql/${encodeURIComponent(id)}`);
|
||||
}
|
||||
|
||||
@@ -1942,6 +1942,10 @@ export async function loadSavedSqlLibrary(): Promise<SavedSqlLibrary> {
|
||||
return invoke("load_saved_sql_library");
|
||||
}
|
||||
|
||||
export async function loadSavedSqlFilesForSync(): Promise<SavedSqlFile[]> {
|
||||
return invoke("load_saved_sql_files_for_sync");
|
||||
}
|
||||
|
||||
export async function loadSavedSqlFile(id: string): Promise<SavedSqlFile | null> {
|
||||
return invoke("load_saved_sql_file", { id });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user