feat(import): add table import wizard
This commit is contained in:
1 parent
4b6a588354
commit
4666f8a5f2
16 files changed
+1871
-205
No files matched your search
@@ -8,7 +8,9 @@ use crate::commands::connection::{ensure_connection_writable, AppState};
|
||||
use crate::commands::transfer::get_db_type;
|
||||
|
||||
// Re-export types for backward compatibility
|
||||
pub use dbx_core::table_import::{TableImportPreview, TableImportProgress, TableImportRequest, TableImportSummary};
|
||||
pub use dbx_core::table_import::{
|
||||
TableImportPreview, TableImportPreviewRequest, TableImportProgress, TableImportRequest, TableImportSummary,
|
||||
};
|
||||
|
||||
static CANCELLED_IMPORTS: OnceLock<RwLock<HashSet<String>>> = OnceLock::new();
|
||||
|
||||
@@ -29,8 +31,8 @@ async fn clear_cancelled(import_id: &str) {
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn preview_table_import_file(file_path: String) -> Result<TableImportPreview, String> {
|
||||
dbx_core::table_import::preview_table_import_file_core(&file_path).await
|
||||
pub async fn preview_table_import_file(request: TableImportPreviewRequest) -> Result<TableImportPreview, String> {
|
||||
dbx_core::table_import::preview_table_import_file_with_request(request).await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
|
||||
Reference in new issue
Block a user