feat(query): move grid save prep to Rust

This commit is contained in:
t8y2
2026-05-22 15:31:50 +08:00
parent 56aeed79fc
commit 209eff528d
14 changed files with 1448 additions and 1092 deletions
+7
View File
@@ -159,3 +159,10 @@ pub async fn analyze_sql_references(
pub fn analyze_editable_query_editability(sql: String) -> Result<dbx_core::sql_editability::QueryEditability, String> {
Ok(dbx_core::sql_editability::analyze_editable_query_editability(&sql))
}
#[tauri::command]
pub fn prepare_data_grid_save(
options: dbx_core::data_grid_sql::DataGridSaveStatementOptions,
) -> Result<dbx_core::data_grid_sql::DataGridSavePreparation, String> {
Ok(dbx_core::data_grid_sql::prepare_data_grid_save(options))
}
+1
View File
@@ -289,6 +289,7 @@ pub fn run() {
commands::query::execute_in_transaction,
commands::query::analyze_sql_references,
commands::query::analyze_editable_query_editability,
commands::query::prepare_data_grid_save,
commands::sql_file::preview_sql_file,
commands::sql_file::execute_sql_file,
commands::sql_file::cancel_sql_file_execution,