feat(data-grid): add multi-format copy extractors

This commit is contained in:
soddygo authored and GitHub committed 2026-07-27 16:11:53 +08:00
1 parent 166027600f
commit 0b7a886cfd
60 files changed
+4615 -1766

No files matched your search

+15
View File
@@ -513,6 +513,21 @@ pub fn prepare_data_grid_save(
Ok(dbx_core::data_grid_sql::prepare_data_grid_save(options))
}
#[tauri::command]
pub async fn extract_data_grid_selection(
request: dbx_core::data_grid_extractors::DataGridExtractRequest,
) -> Result<dbx_core::data_grid_extractors::DataGridExtractResult, dbx_core::data_grid_extractors::DataGridExtractError>
{
tauri::async_runtime::spawn_blocking(move || dbx_core::data_grid_extractors::extract_data_grid_selection(request))
.await
.map_err(|error| {
dbx_core::data_grid_extractors::DataGridExtractError::new(
dbx_core::data_grid_extractors::DataGridExtractErrorCode::ExecutionFailed,
format!("Data grid extractor worker failed: {error}"),
)
})?
}
#[tauri::command]
pub fn build_data_grid_copy_update_statements(
options: dbx_core::data_grid_sql::DataGridCopyUpdateStatementOptions,