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(ci): remove unused storage imports breaking clippy gate

zipg3411e5c8644f
diff --git a/crates/dbx-core/tests/live_mongodb_legacy_agent_commands.rs b/crates/dbx-core/tests/live_mongodb_legacy_agent_commands.rs
index 93a777cff1..1bba622b45 100644
--- a/crates/dbx-core/tests/live_mongodb_legacy_agent_commands.rs
+++ b/crates/dbx-core/tests/live_mongodb_legacy_agent_commands.rs
@@ -8,7 +8,6 @@ use dbx_core::{
mongo_run_command_core,
},
mongo_shell,
- storage::Storage,
};
use mongodb::bson::{doc, Document};
diff --git a/crates/dbx-core/tests/mongodb_dump_restore.rs b/crates/dbx-core/tests/mongodb_dump_restore.rs
index e5ff1bb62a..03897186bb 100644
--- a/crates/dbx-core/tests/mongodb_dump_restore.rs
+++ b/crates/dbx-core/tests/mongodb_dump_restore.rs
@@ -174,7 +174,6 @@ async fn official_tools_round_trip_through_dbx_core() {
export_mongodb_query_core, import_mongodb_file_core, MongoExportFormat, MongoExportRequest, MongoExportStatus,
MongoImportRequest, MongoImportStatus,
};
- use dbx_core::storage::Storage;
use mongodb::bson::{oid::ObjectId, spec::BinarySubtype, Binary, DateTime, Decimal128, Regex, Timestamp};
use std::sync::{
atomic::{AtomicBool, Ordering},
@@ -379,7 +378,6 @@ async fn official_database_tools_round_trip_through_dbx() {
connection::{AppState, PoolKind},
models::connection::ConnectionConfig,
mongodb_dump::*,
- storage::Storage,
};
let uri = std::env::var("DBX_MONGO_DUMP_TEST_URI").expect("DBX_MONGO_DUMP_TEST_URI");
let tools = std::path::PathBuf::from(std::env::var("DBX_MONGO_TOOLS_DIR").expect("DBX_MONGO_TOOLS_DIR"));
@@ -730,7 +728,6 @@ async fn legacy_agent_database_round_trip_through_dbx() {
models::connection::ConnectionConfig,
mongo_ops::mongo_run_command_core,
mongodb_dump::*,
- storage::Storage,
};
// Everything, including seeding and verification, goes through the legacy agent: the native
// Rust driver refuses servers older than 4.2, which is the very case the agent exists for.
@@ -948,7 +945,7 @@ async fn database_source_rejects_invalid_metadata_and_view_cycles() {
#[tokio::test]
async fn directory_preview_does_not_read_bson_and_source_identity_is_checked_before_restore() {
- use dbx_core::{connection::AppState, mongodb_dump::*, storage::Storage};
+ use dbx_core::{connection::AppState, mongodb_dump::*};
let files = tempfile::tempdir().unwrap();
let source = files.path().join("source");
std::fs::create_dir(&source).unwrap();
diff --git a/crates/dbx-web/src/routes/mq.rs b/crates/dbx-web/src/routes/mq.rs
index dcc12976c3..54ef40dad1 100644
--- a/crates/dbx-web/src/routes/mq.rs
+++ b/crates/dbx-web/src/routes/mq.rs
@@ -1532,7 +1532,7 @@ mod tests {
use axum::Json;
use dbx_core::connection::AppState;
use dbx_core::models::connection::ConnectionConfig;
- use dbx_core::storage::{McpGlobalPolicy, Storage};
+ use dbx_core::storage::McpGlobalPolicy;
use std::collections::{HashMap, HashSet};
use std::sync::Arc;
use tokio::sync::{Mutex, RwLock};