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
fix(oracle): retry localized closed connection errors
t8y29622392d4e1c
diff --git a/crates/dbx-core/src/query.rs b/crates/dbx-core/src/query.rsindex e3254c9d99..8ea251f9fe 100644--- a/crates/dbx-core/src/query.rs+++ b/crates/dbx-core/src/query.rs@@ -368,6 +368,8 @@ pub fn is_connection_error(err: &str) -> bool {|| lower.contains("reset by peer")|| lower.contains("timed out")|| lower.contains("closed")+ || lower.contains("关闭的连接")+ || lower.contains("连接已关闭")|| lower.contains("eof")|| lower.contains("i/o error")|| lower.contains("not connected")@@ -1405,6 +1407,8 @@ mod tests {assert!(is_connection_error("ORA-03113: end-of-file on communication channel"));assert!(is_connection_error("ORA-03114: not connected to Oracle"));assert!(is_connection_error("ORA-03135: connection lost contact"));+ assert!(is_connection_error("Agent RPC error (-1): java.sql.SQLRecoverableException: 关闭的连接"));+ assert!(is_connection_error("java.sql.SQLRecoverableException: 连接已关闭"));}#[test]