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。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
style(transfer): rustfmt the demo-mode validation gate
t8y2b281fbd5fa88
diff --git a/crates/dbx-web/src/routes/transfer.rs b/crates/dbx-web/src/routes/transfer.rsindex f21823c522..b70ed93e9b 100644--- a/crates/dbx-web/src/routes/transfer.rs+++ b/crates/dbx-web/src/routes/transfer.rs@@ -91,10 +91,7 @@ pub async fn start_transfer(// carry the requested connections, and the spawned task reports failures as// terminal progress events instead of HTTP errors.let (source_db_type, target_db_type) = if state.demo_mode {- (- dbx_core::models::connection::DatabaseType::Sqlite,- dbx_core::models::connection::DatabaseType::Sqlite,- )+ (dbx_core::models::connection::DatabaseType::Sqlite, dbx_core::models::connection::DatabaseType::Sqlite)} else {// Reject transfer early if the target connection is read-onlyif let Some(name) = dbx_core::query::connection_readonly_name(&state.app, &req.target_connection_id).await {@@ -104,8 +101,10 @@ pub async fn start_transfer()));}- let source_db_type = transfer::get_db_type(&state.app, &req.source_connection_id).await.map_err(AppError::from)?;- let target_db_type = transfer::get_db_type(&state.app, &req.target_connection_id).await.map_err(AppError::from)?;+ let source_db_type =+ transfer::get_db_type(&state.app, &req.source_connection_id).await.map_err(AppError::from)?;+ let target_db_type =+ transfer::get_db_type(&state.app, &req.target_connection_id).await.map_err(AppError::from)?;transfer::validate_transfer_database_pair(&req, &source_db_type, &target_db_type).map_err(AppError::from)?;// `drop_target_before_create` rebuilds target tables. Gate it before responding so the