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(core): update SSL mode URL assertions

vrustx6ce477afe99f
diff --git a/crates/dbx-core/src/connection.rs b/crates/dbx-core/src/connection.rs
index 599a4728e9..a1ae5ac662 100644
--- a/crates/dbx-core/src/connection.rs
+++ b/crates/dbx-core/src/connection.rs
@@ -4285,7 +4285,7 @@ mod tests {
assert_eq!(
connection_url_for_endpoint(&config, &config.host, config.port),
- "postgres://gaussdb:[email protected]:3306/postgres"
+ "postgres://gaussdb:[email protected]:3306/postgres?sslmode=disable"
);
}
diff --git a/crates/dbx-core/src/models/connection.rs b/crates/dbx-core/src/models/connection.rs
index 4de945f0b9..6f64050636 100644
--- a/crates/dbx-core/src/models/connection.rs
+++ b/crates/dbx-core/src/models/connection.rs
@@ -2097,7 +2097,7 @@ mod tests {
config.db_type = DatabaseType::Postgres;
assert_eq!(config.effective_database(), Some(" analytics "));
- assert_eq!(config.connection_url(), "postgres://root:[email protected]:2883/%20analytics%20");
+ assert_eq!(config.connection_url(), "postgres://root:[email protected]:2883/%20analytics%20?sslmode=disable");
}
#[test]
@@ -2789,7 +2789,7 @@ mod tests {
config.db_type = DatabaseType::Postgres;
config.driver_profile = Some("cockroachdb".to_string());
- assert_eq!(config.connection_url(), "postgres://root:[email protected]:2883/defaultdb");
+ assert_eq!(config.connection_url(), "postgres://root:[email protected]:2883/defaultdb?sslmode=disable");
}
#[test]