Commit Graph
54 Commits
Author SHA1 Message Date
Guoyu Su d6fc1fe52c fix(core): avoid holding pool registry locks during db io 2026-09-03 01:53:42 +08:00
jearhe 38b93505c4 fix(mongodb): include TTL index info in MCP getIndexes 2026-09-02 11:27:19 +08:00
Lan-zk 73a7b3f2c7 feat(es): paginate past 10k documents via pit and search_after 2026-08-30 03:57:03 +08:00
zipg e97c9ab5d7 feat(dynamodb): support querying, editing, and exporting 2026-08-17 03:27:44 +08:00
Melody Ruch 4660a11f25 fix(schema-diff): require explicit expression index provenance 2026-08-16 14:39:43 +08:00
t8y2 65792128e4 fix(mongodb): support show databases shell commands
Closes #6226
2026-08-14 07:49:07 +00:00
kirito 799bdd1a62 feat(mongodb): support safe index editing 2026-08-14 12:58:03 +08:00
t8y2 d0e027bb17 fix(mongodb): support legacy agent insertMany writes
Refs: #6032
2026-08-12 16:20:25 +00:00
Guoyu Su 9b24d962bb feat(mongodb): support generic runCommand execution 2026-08-12 21:05:13 +08:00
onenewcode 5fe3b5b435 feat(mongo): add collection clone 2026-08-10 15:53:00 +08:00
t8y2 9e3013adf9 fix(mongodb): support createUser shell commands
Closes #5639
2026-08-09 15:51:04 +08:00
t8y2 f10642e29a fix(mongodb): support legacy aggregate commands
Closes #5575
2026-08-08 20:30:20 +08:00
t8y2 996ce42e80 fix(mongodb): support find explain commands
Closes #5619
2026-08-07 18:51:04 +08:00
t8y2 bac8f4166f fix(mcp): route MongoDB getIndexes through metadata
Closes #5618
2026-08-07 17:21:31 +08:00
Eddy Lei a5e46fd659 feat(query): show database server messages in query results 2026-08-07 15:18:32 +08:00
zipg a71c767174 fix(mongodb-agent): block readonly query misjudged as write 2026-08-06 20:10:31 +08:00
t8y2 2e57ac8bc0 fix(mongodb): support legacy Agent findOne queries
Closes #5300
2026-08-04 13:09:33 +08:00
zipg c9764be9a0 fix(mongodb): support collation for find queries 2026-08-04 00:37:13 +08:00
onenewcode 8e7b74d0ee feat(mongodb): improve sidebar index management 2026-08-02 22:45:33 +08:00
onenewcode 9a83b46f00 feat(mongodb): rename collections from sidebar 2026-07-21 17:08:27 +08:00
onenewcode bb613b1712 fix(mongodb): support aggregate options and parse errors 2026-07-17 16:57:38 +08:00
Võ Văn Thành (Jay) 640e82cdc6 feat(mongo): improve completion and add distinct support 2026-07-16 18:21:10 +08:00
onenewcode 5bcad3adc6 feat(mongo): add whole-document JSON editing 2026-07-16 18:21:01 +08:00
Võ Văn Thành (Jay) 55f15c8e4b fix(mongodb): validate options and bound findOne queries 2026-07-15 13:19:53 +08:00
Guoyu Su a99a34b4ab fix(mongodb): use dedicated count for legacy collections 2026-07-13 13:21:50 +08:00
zipg 9a09bd49cb fix(mongodb): support array filters in updates 2026-07-12 23:13:36 +08:00
Guoyu Su ca9e11217e fix(mongodb): support collection drop shell command 2026-07-09 14:16:32 +08:00
Guoyu Su 3bc208dbf9 fix(mongodb): support legacy index commands 2026-07-09 00:33:52 +08:00
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 0c4ae7caf6 fix(mongodb): support shell delete commands 2026-07-01 20:23:51 +08:00
onenewcode 93eeeaa9c6 feat(mongo): add dropIndex and dropIndexes support across full stack 2026-07-01 17:53:09 +08:00
onenewcode e09ec3cd7a fix(mongo): preserve BSON types in MongoDB-to-MongoDB transfer 2026-07-01 16:31:39 +08:00
t8y2 6d9132e2a9 fix(mongo): support legacy agent bulk updates 2026-07-01 01:52:32 +08:00
t8y2 299a9843f3 fix(elasticsearch): pass routing for document writes 2026-07-01 00:43:14 +08:00
onenewcode b90e4fd64e feat(mongodb): support createIndex shell command (#2187) 2026-06-30 21:34:58 +08:00
lexmin0412 c04203ca90 fix(vector): use specified database for Milvus collection listing (#2087) 2026-06-30 01:53:48 +08:00
Guoyu Su 7a5984a1fd fix(mongodb): support shell projection and db.version 2026-06-29 00:27:27 +08:00
lexmin0412 c2376494d3 feat(vector): add ChromaDB support 2026-06-26 01:41:36 +08:00
林剑凛 41edb3da91 feat(mongo): add database and collection deletion 2026-06-20 22:22:04 +08:00
t8y2 e27d34a34a feat(vector): add qdrant and milvus support 2026-06-19 10:07:56 +08:00
t8y2 66e6ca1211 fix(db): refresh stale native pools 2026-06-17 11:14:35 +08:00
t8y2 c57e18bf3e fix: resolve clippy warnings and missing struct fields in tests 2026-06-16 00:55:32 +08:00
t8y2 7923f4915e fix(elasticsearch): apply document filters in browser 2026-06-11 18:56:38 +08:00
t8y2 8942356eed fix: sort sidebar metadata nodes consistently 2026-06-05 16:44:41 +08:00
t8y2 81e1693c18 fix(mongodb): support restricted database users 2026-06-02 11:09:48 +08:00
t8y2 ef4baba57a feat: support double-clicking .db/.sqlite/.duckdb files to open in IDE
Add OS file association for database files (.db, .sqlite, .sqlite3, .duckdb)
so double-clicking them in Finder/Explorer automatically creates a connection.
If the same file path is already connected, prompts the user to switch instead.

Also fix 42 pre-existing clippy warnings in dbx-core (needless_borrow,
too_many_arguments, derivable_impls, manual_div_ceil, type_complexity, etc.).

Closes #527
2026-05-29 17:25:52 +08:00
徐文彬 5ea146e08e fix(mongodb): guard aggregate execution paths 2026-05-28 21:29:08 +08:00
徐文彬andClaude 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 a8f717b3f6 refactor(agent): wrap mongo legacy calls 2026-05-19 15:49:22 +08:00
t8y2 a0bcb1d889 feat(mongo): fallback to agent driver for pre-4.2 MongoDB
When native Rust MongoDB driver fails with wire version error,
automatically fall back to the Java agent driver which supports
older MongoDB versions. All mongo_ops route through agent RPC
when the connection pool is Agent-backed.
2026-05-14 15:04:02 +08:00