dbx/src-tauri/src/commands
onenewcode 91c77e53c4
feat(mongodb): support collection stats shell commands
Add db.coll.stats() / dataSize() / storageSize(scale) / totalIndexSize()
so these MongoDB shell commands return a result grid instead of the
"Use MongoDB shell-style commands" error (issue #2529).

- backend: collStats via mongo_driver.collection_stats, wired through
  mongo_ops, the dbx-web /mongo/collection-stats route, the tauri
  mongo_collection_stats command, and the MCP data bridge
- node-core: parseMongoCollectionStatsCommand + result formatter and
  executeQuery dispatch (web build + MCP path)
- desktop: mirror the parser/executor/autocomplete in mongoShellCommand.ts,
  queryStore.ts, api/tauri/http facade, and mongoCompletion.ts
- tests for the parser, result formatter, and completion entries

Close #2529
2026-07-03 21:32:29 +08:00
..
agents.rs feat: add driver runtime manager 2026-06-04 23:20:15 +08:00
ai.rs fix(ai): remove temperature from AI requests 2026-07-02 17:58:35 +08:00
app_settings.rs fix(editor): prompt before closing unsaved SQL tabs 2026-07-02 16:43:55 +08:00
cloud_sync.rs
connection.rs feat(connection): add StarRocks TLS support 2026-07-02 16:37:20 +08:00
connection_secrets.rs
csv_export.rs fix(export): resolve query result export progress 2026-06-19 11:15:18 +08:00
data_compare.rs fix(data-compare): create missing target tables during sync 2026-06-02 17:46:30 +08:00
database_export.rs
deep_link.rs
document_cmd.rs feat(mongo): add GridFS manager for MongoDB 2026-07-03 18:34:00 +08:00
etcd_cmd.rs feat(readonly): add read-only mode for all database connections 2026-06-10 10:58:52 +08:00
external_db.rs fix(sqlite): support .db3 file extension 2026-06-16 20:30:21 +08:00
external_sql.rs feat(sql): save external files locally 2026-06-24 23:13:17 +08:00
fs_open.rs feat(sqlite): support custom database file suffixes 2026-06-23 20:15:06 +08:00
history.rs feat(redis): persist command history across sessions (#933) 2026-06-10 04:34:45 +08:00
keychain.rs fix: add missing read_only field and resolve clippy warnings 2026-06-10 12:55:39 +08:00
mcp.rs fix(mcp): use node entry for Windows configs 2026-07-01 13:40:48 +08:00
mcp_bridge.rs feat(mongodb): support collection stats shell commands 2026-07-03 21:32:29 +08:00
mod.rs fix(elasticsearch): pass routing for document writes 2026-07-01 00:43:14 +08:00
mongo_cmd.rs feat(mongodb): support collection stats shell commands 2026-07-03 21:32:29 +08:00
mq_cmd.rs fix(kafka): improve mq admin compatibility 2026-07-02 12:58:33 +08:00
nacos_cmd.rs feat(nacos): add Nacos management console (#1456) 2026-06-24 01:19:18 +08:00
plugins.rs feat: add PrestoSQL connector 2026-06-23 01:27:08 +08:00
query.rs feat(query): add manual transaction controls 2026-07-02 01:30:31 +08:00
query_cancel.rs
query_result_export.rs feat: stream query result CSV/XLSX exports 2026-06-24 21:18:11 +08:00
redis_cmd.rs fix(redis): speed up large key scans 2026-06-23 15:14:24 +08:00
redis_pubsub_server.rs fix(redis): connect pubsub to desktop websocket server 2026-07-02 19:47:41 +08:00
saved_sql.rs Fix: 优化 SQL 库启动加载 2026-06-27 15:07:26 +08:00
schema.rs fix(structure): load dynamic data type options 2026-06-26 15:22:33 +08:00
schema_cache.rs
schema_diff.rs fix: resolve clippy warnings and missing struct fields in tests 2026-06-16 00:55:32 +08:00
sql_file.rs fix: support mysql install scripts without selected database (#2356) 2026-07-02 13:18:49 +08:00
sqlite_backup.rs feat(sqlite): add database backup action 2026-06-13 18:39:12 +08:00
system_fonts.rs perf(tauri): move blocking command work off async runtime 2026-06-09 17:53:07 +08:00
tab_runtime_cache.rs feat: optimize tab result lifecycle caching 2026-06-06 20:30:35 +08:00
table_export.rs perf(export): 优化导出ui体验和性能 2026-06-03 10:39:11 +08:00
table_import.rs feat(readonly): add read-only mode for all database connections 2026-06-10 10:58:52 +08:00
text_export.rs perf(tauri): move blocking command work off async runtime 2026-06-09 17:53:07 +08:00
transfer.rs feat(export-tracker): 增强导出任务跟踪功能 (#1958) 2026-06-26 18:50:25 +08:00
update.rs feat(updates): add AtomGit update download source 2026-07-03 11:01:27 +08:00
xlsx_export.rs feat(export): support multi-result xlsx export 2026-06-19 14:05:08 +08:00
zookeeper_cmd.rs feat: ZK 节点树改为真正懒加载 (#1987) 2026-06-27 15:02:09 +08:00