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: influxdb code removed on merge

John Jinb640cbd0ba73
diff --git a/crates/dbx-core/src/schema.rs b/crates/dbx-core/src/schema.rs
index 3ee5b9c9f7..c3ccf67446 100644
--- a/crates/dbx-core/src/schema.rs
+++ b/crates/dbx-core/src/schema.rs
@@ -292,6 +292,10 @@ async fn list_databases_once(state: &AppState, connection_id: &str) -> Result<Ve
drop(connections);
return db::clickhouse_driver::list_databases(&client).await;
}
+ if let Some(client) = extract_pool!(&connections, connection_id, InfluxDb) {
+ drop(connections);
+ return db::influxdb_driver::list_databases(&client).await;
+ }
try_sqlserver!(connections, connection_id, list_databases);
if let Some(client) = extract_pool!(&connections, connection_id, Agent) {
let is_mongo =
@@ -477,6 +481,12 @@ async fn list_tables_once(
.await
.map(|tables| filter_table_infos(tables, filter, limit, offset));
}
+ if let Some(client) = extract_pool!(&connections, &pool_key, InfluxDb) {
+ drop(connections);
+ return db::influxdb_driver::list_tables(&client, database)
+ .await
+ .map(|tables| filter_table_infos(tables, filter, limit, offset));
+ }
try_sqlserver!(connections, &pool_key, list_tables, schema, filter, limit, offset);
if let Some(client) = extract_pool!(&connections, &pool_key, Agent) {
let fallback_config = db_config.clone();
@@ -1110,6 +1120,10 @@ pub async fn get_columns_core(
.await
.map(deduplicate_column_infos);
}
+ if let Some(client) = extract_pool!(&connections, &pool_key, InfluxDb) {
+ drop(connections);
+ return db::influxdb_driver::get_columns(&client, database, table).await.map(deduplicate_column_infos);
+ }
try_sqlserver!(connections, &pool_key, get_columns, schema, table);
if let Some(client) = extract_pool!(&connections, &pool_key, Agent) {
let fallback_config = db_config.clone();