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): avoid cloned csv regression fixture

t8y24c13e21cca83
diff --git a/crates/dbx-core/src/csv_export.rs b/crates/dbx-core/src/csv_export.rs
index ad484d4bd6..e20702a200 100644
--- a/crates/dbx-core/src/csv_export.rs
+++ b/crates/dbx-core/src/csv_export.rs
@@ -423,7 +423,7 @@ mod tests {
let mut csv = String::new();
super::push_query_result_csv_row(&mut csv, &row);
- assert_eq!(csv, super::format_query_result_csv_rows(&[row.clone()]));
+ assert_eq!(csv, super::format_query_result_csv_rows(std::slice::from_ref(&row)));
let mut table_csv = String::new();
super::push_table_csv_row(&mut table_csv, &row);