Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(transfer): resolve main CI compile failures

t8y2e65f3eec669b
diff --git a/apps/desktop/src/components/transfer/DataTransferDialog.vue b/apps/desktop/src/components/transfer/DataTransferDialog.vue
index 44bf60f2d4..91ce01ea4b 100644
--- a/apps/desktop/src/components/transfer/DataTransferDialog.vue
+++ b/apps/desktop/src/components/transfer/DataTransferDialog.vue
@@ -203,7 +203,6 @@ const tableFilters = ref<Record<string, string>>({});
const filterDialogOpen = ref(false);
const filterEditingTable = ref("");
const filterDraft = ref("");
-const showRebuildConfirm = ref(false);
const isSubmitting = ref(false);
const pendingTransferId = ref<string | null>(null);
const showStartConfirm = ref(false);
diff --git a/crates/dbx-core/src/data/transfer.rs b/crates/dbx-core/src/data/transfer.rs
index 83895570a2..715a99c973 100644
--- a/crates/dbx-core/src/data/transfer.rs
+++ b/crates/dbx-core/src/data/transfer.rs
@@ -5362,6 +5362,8 @@ async fn transfer_write_mysql_hard_limit(state: &AppState, pool_key: &str) -> Op
}
}
+#[allow(clippy::too_many_arguments)]
+#[cfg_attr(not(test), allow(dead_code))]
fn generate_transfer_write_sql_batches(
mode: &TransferMode,
columns: &[String],
diff --git a/crates/dbx-core/tests/live_postgres_transfer.rs b/crates/dbx-core/tests/live_postgres_transfer.rs
index efcc14e00e..1219d44edb 100644
--- a/crates/dbx-core/tests/live_postgres_transfer.rs
+++ b/crates/dbx-core/tests/live_postgres_transfer.rs
@@ -2186,6 +2186,7 @@ async fn live_postgres_structure_only_preview_renders_ddl_without_touching_the_t
.insert(target_connection_id.to_string(), postgres_test_config(target_connection_id, &target_database));
let request = TransferRequest {
+ table_filters: std::collections::HashMap::new(),
transfer_id: format!("live-pg-preview-{suffix}"),
source_connection_id: source_connection_id.to_string(),
source_database: source_database.clone(),