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(query): box transaction command errors

t8y27e1e9053f8eb
diff --git a/src-tauri/src/commands/query.rs b/src-tauri/src/commands/query.rs
index f06a47001d..ae0c03b8b5 100644
--- a/src-tauri/src/commands/query.rs
+++ b/src-tauri/src/commands/query.rs
@@ -26,7 +26,7 @@ struct ExecuteMultiProgress {
#[derive(Debug, serde::Serialize)]
#[serde(untagged)]
pub enum ManualTransactionCommandError {
- Structured(BackendError),
+ Structured(Box<BackendError>),
Legacy(String),
}
@@ -476,9 +476,9 @@ pub async fn execute_in_manual_transaction(
.await
.map_err(|error| {
if dbx_core::query::is_manual_transaction_session_expired_error(&error) {
- ManualTransactionCommandError::Structured(BackendError::from_manual_transaction_session_expired(
+ ManualTransactionCommandError::Structured(Box::new(BackendError::from_manual_transaction_session_expired(
dbx_core::query::MANUAL_TRANSACTION_IDLE_TIMEOUT_SECS,
- ))
+ )))
} else {
ManualTransactionCommandError::Legacy(error)
}