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): remove unused DuckDB isolation helper

t8y2dee5bb2fd896
diff --git a/crates/dbx-core/src/connection.rs b/crates/dbx-core/src/connection.rs
index 2668e24262..37c821a388 100644
--- a/crates/dbx-core/src/connection.rs
+++ b/crates/dbx-core/src/connection.rs
@@ -505,10 +505,6 @@ impl AppState {
}
}
- fn duckdb_worker_process_isolation_enabled(&self) -> bool {
- self.duckdb_worker_process_isolation.load(Ordering::Relaxed)
- }
-
pub async fn test_external_driver(&self, driver_id: &str, config: &ConnectionConfig) -> Result<String, String> {
let params = serde_json::json!({ "connection": config });
let env = self.external_driver_runtime_env(driver_id)?;
@@ -944,7 +940,7 @@ impl AppState {
}
#[cfg(feature = "duckdb-bundled")]
DatabaseType::DuckDb => {
- if self.duckdb_worker_process_isolation_enabled() {
+ if self.duckdb_worker_process_isolation.load(Ordering::Relaxed) {
let attached_databases = db_config
.attached_databases
.iter()
@@ -1770,7 +1766,7 @@ impl AppState {
#[cfg(feature = "duckdb-bundled")]
async fn remove_pool_if_duckdb_isolation_mismatch(&self, pool_key: &str) -> bool {
- let isolation_enabled = self.duckdb_worker_process_isolation_enabled();
+ let isolation_enabled = self.duckdb_worker_process_isolation.load(Ordering::Relaxed);
let mismatch = {
let connections = self.connections.read().await;
match connections.get(pool_key) {