feat(query): move grid save prep to Rust
This commit is contained in:
1 parent
56aeed79fc
commit
209eff528d
14 files changed
+1448
-1092
No files matched your search
@@ -22,6 +22,7 @@ import type {
|
||||
} from "@/types/database";
|
||||
import type { AiConfig } from "@/stores/settingsStore";
|
||||
import type { QueryEditability } from "@/lib/sqlAnalysis";
|
||||
import type { DataGridSaveStatementOptions } from "@/lib/dataGridSql";
|
||||
|
||||
export interface AgentDriverInfo {
|
||||
db_type: string;
|
||||
@@ -317,6 +318,17 @@ export async function analyzeEditableQueryEditability(sql: string): Promise<Quer
|
||||
return invoke("analyze_editable_query_editability", { sql });
|
||||
}
|
||||
|
||||
export interface DataGridSavePreparation {
|
||||
validationError?: string;
|
||||
statements: string[];
|
||||
rollbackStatements: string[];
|
||||
executionSchema?: string;
|
||||
}
|
||||
|
||||
export async function prepareDataGridSave(options: DataGridSaveStatementOptions): Promise<DataGridSavePreparation> {
|
||||
return invoke("prepare_data_grid_save", { options });
|
||||
}
|
||||
|
||||
export async function listIndexes(
|
||||
connectionId: string,
|
||||
database: string,
|
||||
|
||||
Reference in new issue
Block a user