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
@@ -57,6 +57,12 @@ pub struct AnalyzeEditableQueryRequest {
|
||||
pub sql: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct PrepareDataGridSaveRequest {
|
||||
pub options: dbx_core::data_grid_sql::DataGridSaveStatementOptions,
|
||||
}
|
||||
|
||||
pub async fn execute_query(
|
||||
State(state): State<Arc<WebState>>,
|
||||
Json(req): Json<ExecuteQueryRequest>,
|
||||
@@ -199,3 +205,9 @@ pub async fn analyze_editable_query_editability(
|
||||
) -> Json<dbx_core::sql_editability::QueryEditability> {
|
||||
Json(dbx_core::sql_editability::analyze_editable_query_editability(&req.sql))
|
||||
}
|
||||
|
||||
pub async fn prepare_data_grid_save(
|
||||
Json(req): Json<PrepareDataGridSaveRequest>,
|
||||
) -> Json<dbx_core::data_grid_sql::DataGridSavePreparation> {
|
||||
Json(dbx_core::data_grid_sql::prepare_data_grid_save(req.options))
|
||||
}
|
||||
Reference in new issue
Block a user