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
t8y2
cabe89a19b
fix(mongodb): support legacy count helpers
2026-07-03 13:25:36 +08:00
8747df53ef
fix(mongodb): support multi-command execution
...
* fix mongodb multi-command execution
* fix(connection): 复制连接时保持在同一组内
- 修改 `addConnection` 方法以支持指定目标组 ID
- 更新 `duplicateConnection` 函数以传递目标组 ID
- 添加测试用例以验证复制连接的功能
* fix: add MongoDB data transfer entry
* feat(editor): SQL 编辑器选区大小写转换
Co-authored-by: staff <staff@qimaos-MacBook-Pro.local >
* fix(editor): 修复SQL快捷执行导致执行全量SQL的问题 (#2384 )
- 将执行SQL语句的逻辑从直接请求改为通过事件发射
- 增强了代码的可扩展性和可维护性
* fix(sidebar): cache tooltip overflow measurement
* fix(dialog): allow dragging window from modal overlay
* fix(oracle): reuse shared pool for data tabs
* fix(sidebar): reduce comment text repaint cost
* fix(saved-sql): preserve folder on metadata save
* fix(agent): execute transaction control SQL as statements
* feat(vector): add Qdrant/Milvus collection dimension display (#2396 )
* fix(oracle): 修复时间字段编辑和表结构修改报错
Co-authored-by: staff <staff@qimaos-MacBook-Pro.local >
* fix(agents): limit common version bumps
---------
Co-authored-by: 二丫讲梵 <eryajf@163.com >
Co-authored-by: zipg <geeky@foxmail.com >
Co-authored-by: staff <staff@qimaos-MacBook-Pro.local >
Co-authored-by: t8y2 <1156263951@qq.com >
Co-authored-by: lexmin0412 <zhangle_dev@outlook.com >
2026-07-02 12:19:38 +08:00
onenewcode
93eeeaa9c6
feat(mongo): add dropIndex and dropIndexes support across full stack
2026-07-01 17:53:09 +08:00
onenewcode
b90e4fd64e
feat(mongodb): support createIndex shell command ( #2187 )
2026-06-30 21:34:58 +08:00
Guoyu Su
7a5984a1fd
fix(mongodb): support shell projection and db.version
2026-06-29 00:27:27 +08:00
zipg
33422ec921
feat(mongodb): support editing find query results
2026-06-28 18:59:27 +08:00
t8y2
bc49bbbbfa
fix(mongo): parse newline chained find calls
2026-06-24 23:21:06 +08:00
t8y2
edba8214b5
feat: show username/password fields for Access database connections
2026-06-10 08:37:18 +08:00
t8y2
a5659d7637
fix(mongodb): support getIndexes shell command
2026-06-08 01:25:44 +08:00
t8y2
fabf2172e4
chore: migrate test runner from node:test/tsx to vitest
...
155 files, 1091 tests, 4.3s (2x faster than previous 9.1s).
2026-06-08 01:17:27 +08:00
t8y2
a87b8ece31
fix(mongodb): support compass shell commands
2026-06-01 16:24:31 +08:00
徐文彬
5ea146e08e
fix(mongodb): guard aggregate execution paths
2026-05-28 21:29:08 +08:00
徐文彬 and Claude Opus 4.7
c56bcb8e2d
feat(mongodb): 支持聚合查询、批量写入和 MCP 集成
...
- 桌面端:解析 db.<集合>.aggregate([...]) shell 语法,新增 mongoAggregateDocuments
接口(Tauri + HTTP);mongo 入口统一补 ensureConnected;ObjectId(...) 自动
转换为 {"\$oid":"..."} 扩展 JSON 表示。
- dbx-core:新增 aggregate_documents、insert/update/delete_documents bulk
操作;扩展 JSON 解析识别 \$oid;schema list_tables_core 补 MongoDB/Elasticsearch
分支返回 COLLECTION/INDEX。
- dbx-web / Tauri 命令 / MCP bridge:注册 4 个新 mongo 路由
(aggregate/insert/update/delete documents);MCP bridge 新增 mongo HTTP 入口
和 lazy 连接复用。
- node-core (MCP 后端):mongodb 走专属 executeQuery / listTables /
describeTable;read-only 默认 + DBX_MCP_ALLOW_WRITES /
DBX_MCP_ALLOW_DANGEROUS_SQL 两级开关;aggregate 含 \$out/\$merge 走同样开关;
describeTable 抽样 20 条文档推断字段类型,_id 自动标记主键。
- mcp-server:mongodb 跳过 SQL safety evaluator(mongo shell 与 SQL 语法
不兼容),改由 backend 做命令级 gating;附注释。
- AiAssistant 同时 emit replaceSql + executeSql 让编辑器和结果保持一致;
App.vue ensureQueryTab 在无上下文时回退到连接默认库;aiMessageRender
识别 mongodb / mongo 代码块。
- Review 修复:合并两份重复的 evaluateMongo*Safety 实现(同时修复 web-backend
用字符串比较导致空 filter 检查可被空格绕过的 bug);ObjectId 正则兼容
单/双引号;mongo_ops 错误文案 "MCP" 改为 "bulk";补 aggregate 解析测试用例。
测试:pnpm test 911 通过;vue-tsc 通过;cargo check -p dbx-core 通过。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-28 21:25:43 +08:00
t8y2
6c83b10b42
fix(mongo): preserve auth database for commands
2026-05-22 12:44:16 +08:00
t8y2
06683c57b1
chore(repo): move desktop app under apps
2026-05-18 02:35:39 +08:00
t8y2
5dabdb3985
chore(repo): move app tests under packages
2026-05-18 02:23:58 +08:00