feat(sql-files): create, rename, and delete SQL files in tree
This commit is contained in:
22 files changed
+590
-8
No files matched your search
@@ -380,6 +380,9 @@ export const inspectExternalSqlFile = forward("inspectExternalSqlFile");
|
||||
export const writeExternalSqlFile = forward("writeExternalSqlFile");
|
||||
export const saveExternalSqlFile = forward("saveExternalSqlFile");
|
||||
export const listSqlFilesInFolder = forward("listSqlFilesInFolder");
|
||||
export const createSqlFileInFolder = forward("createSqlFileInFolder");
|
||||
export const renameSqlFileInFolder = forward("renameSqlFileInFolder");
|
||||
export const deleteSqlFileInFolder = forward("deleteSqlFileInFolder");
|
||||
|
||||
// Nacos
|
||||
export const nacosTestConnection = forward("nacosTestConnection");
|
||||
|
||||
@@ -2221,6 +2221,18 @@ export async function listSqlFilesInFolder(_folderPath: string): Promise<SqlFile
|
||||
throw new Error("Listing SQL files in a folder is only available in the desktop app");
|
||||
}
|
||||
|
||||
export async function createSqlFileInFolder(_rootPath: string, _directoryPath: string, _fileName: string): Promise<string> {
|
||||
throw new Error("Managing SQL files in folders is only available in the desktop app");
|
||||
}
|
||||
|
||||
export async function renameSqlFileInFolder(_rootPath: string, _filePath: string, _fileName: string): Promise<string> {
|
||||
throw new Error("Managing SQL files in folders is only available in the desktop app");
|
||||
}
|
||||
|
||||
export async function deleteSqlFileInFolder(_rootPath: string, _filePath: string): Promise<void> {
|
||||
throw new Error("Managing SQL files in folders is only available in the desktop app");
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Data Transfer
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
@@ -891,6 +891,18 @@ export async function listSqlFilesInFolder(folderPath: string): Promise<SqlFileE
|
||||
return invoke("list_sql_files_in_folder", { folderPath });
|
||||
}
|
||||
|
||||
export async function createSqlFileInFolder(rootPath: string, directoryPath: string, fileName: string): Promise<string> {
|
||||
return invoke("create_sql_file_in_folder", { rootPath, directoryPath, fileName });
|
||||
}
|
||||
|
||||
export async function renameSqlFileInFolder(rootPath: string, filePath: string, fileName: string): Promise<string> {
|
||||
return invoke("rename_sql_file_in_folder", { rootPath, filePath, fileName });
|
||||
}
|
||||
|
||||
export async function deleteSqlFileInFolder(rootPath: string, filePath: string): Promise<void> {
|
||||
return invoke("delete_sql_file_in_folder", { rootPath, filePath });
|
||||
}
|
||||
|
||||
// --- AI Conversations ---
|
||||
|
||||
export interface AiChatMessage {
|
||||
|
||||
Reference in new issue
Block a user