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。

chore(transfer): remove dead query_mysql_create_table_ddl

t8y2fc8ae4b69fc2
diff --git a/crates/dbx-core/src/transfer.rs b/crates/dbx-core/src/transfer.rs
index 23bfbc25ca..9a5e9e513f 100644
--- a/crates/dbx-core/src/transfer.rs
+++ b/crates/dbx-core/src/transfer.rs
@@ -3113,17 +3113,6 @@ where
Ok(total_transferred)
}
-async fn query_mysql_create_table_ddl(
- state: &AppState,
- source_pool_key: &str,
- source_schema: &str,
- table: &str,
-) -> Result<String, String> {
- let sql = format!("SHOW CREATE TABLE {}", qualified_table(table, source_schema, &DatabaseType::Mysql));
- let rows = execute_on_pool(state, source_pool_key, &sql).await?.rows;
- rows.first().and_then(|row| json_string_cell(row, 1)).ok_or_else(|| format!("Failed to get MySQL DDL: {sql}"))
-}
-
pub async fn transfer_postgres_schema_dependencies<F>(
state: &AppState,
request: &TransferRequest,