Commit Graph
60 Commits
Author SHA1 Message Date
Loc Nguyen c2b7e427af fix(mongodb): accept mongosh number type constructors 2026-10-16 12:01:32 +08:00
Loc Nguyen b7553e6489 feat(mongodb): support createview and user role shell helpers 2026-10-15 12:52:19 +08:00
Loc Nguyen 3e9974b226 perf(mongodb): skip total count for explicit limit queries 2026-10-14 16:08:03 +08:00
dienaso d918125a04 fix(mongodb): accept the copied EJSON.deserialize insert form 2026-10-11 08:10:56 +08:00
onenewcode cf78eebbc9 fix(mongodb): display array structures as shell-style bson literals 2026-09-29 12:22:42 +08:00
Loc Nguyen f1e0f54a2b feat(mongodb): support db.getSiblingDB() 2026-09-18 15:38:53 +08:00
Loc Nguyen 7c51454bfd feat(mongodb): support db.createCollection() and db.dropDatabase() 2026-09-18 15:06:29 +08:00
Loc Nguyen 2db28fc236 feat(mongodb): support db.collection.renameCollection() 2026-09-18 14:12:39 +08:00
Loc Nguyen a78fc48a7b feat(mongodb): support find explain in the SQL editor 2026-09-18 01:45:37 +08:00
Loc Nguyen 58200ce5a4 fix(mongodb): reject unsupported find() chain methods instead of dropping them 2026-09-17 17:16:28 +08:00
Loc Nguyen f78dc1ba16 feat(mongodb): support bulkWrite 2026-09-17 12:54:21 +08:00
Loc Nguyen 9eafac706e feat(mongodb): support replaceOne 2026-09-16 12:18:54 +08:00
Loc Nguyen 69b138dc22 feat(mongodb): support estimatedDocumentCount, db.stats, db.serverStatus 2026-09-16 00:40:32 +08:00
Loc Nguyen aeafddfae7 fix(mongodb): say what failed instead of the generic command hint 2026-09-15 16:00:10 +08:00
Loc Nguyen f95650f039 fix(mongodb): accept .toArray()/.pretty() after find/aggregate 2026-09-15 12:09:25 +08:00
Loc Nguyen 71cc734cdd fix(mongo): support bson shell literals in filters and queries 2026-09-11 17:26:05 +08:00
Loc Nguyen e1e925fbab fix(mongo): accept db["collection"] bracket accessors 2026-09-11 10:50:44 +08:00
Loc Nguyen 3e707d7777 fix(mongodb): support zero-arg and numeric shell constructors 2026-09-10 16:18:22 +08:00
Guoyu Su d92e119464 fix(mongodb): support shell regex literals 2026-09-02 20:36:59 +08:00
t8y2 65792128e4 fix(mongodb): support show databases shell commands
Closes #6226
2026-08-14 07:49:07 +00:00
Guoyu Su 9b24d962bb feat(mongodb): support generic runCommand execution 2026-08-12 21:05:13 +08:00
t8y2 9e3013adf9 fix(mongodb): support createUser shell commands
Closes #5639
2026-08-09 15:51:04 +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
zipg 1672d64619 fix(mongodb): support query result pagination 2026-07-28 01:02:24 +08:00
Guoyu Su 3da4dd5ff9 fix(mongodb): avoid exact count for unfiltered queries 2026-07-25 19:40:09 +08:00
Guoyu Su d341581ff0 fix(mongodb): accept trailing commas in shell arguments 2026-07-25 08:47:06 +08:00
二丫讲梵 0992c52448 feat(mongodb): support copying MongoDB documents 2026-07-24 15:50:49 +08:00
James Leong 63f375a7d8 fix(mongo): ignore comments in shell JSON arguments 2026-07-22 15:10:40 +08:00
二丫讲梵 d642d01eac feat(mcp): centralize connection access policies 2026-07-20 22:47:40 +08:00
t8y2 4bcf618162 feat(cli): migrate CLI to native Rust binary 2026-07-18 22:29:29 +08:00
zipg fa5579a3f1 fix(mongodb): support legacy insert syntax 2026-07-18 22:17:45 +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
vrustx d9076f4689 fix(mongo): preserve document IDs during editing 2026-07-16 00:47:02 +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
zipg 2a5e7ac1c7 fix(mongodb): preserve long ids in filters and updates 2026-07-14 11:09:11 +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
二丫讲梵 264909aaa9 feat(mongo): add document JSON preview 2026-07-11 01:00:47 +08:00
Guoyu Su ca9e11217e fix(mongodb): support collection drop shell command 2026-07-09 14:16:32 +08:00
Hiep LeandClaude Opus 4.8 78019c44e2 fix(mongo): support ISODate() and new Date() in MongoDB queries
* fix(mongo): hỗ trợ ISODate() và new Date() trong query MongoDB

Parser shell MongoDB ở frontend chỉ chuyển ObjectId(...) sang extended JSON,
nên filter chứa ISODate("...")/new Date("...") không parse được: câu lệnh rơi
xuống SQL executor và báo lỗi "Use MongoDB-specific commands".

Bổ sung rewrite ISODate(x)/new Date(x) -> {"$date":x} trong normalizeJsonArgument,
khớp với json_value_to_bson của backend (đã hiểu $date/$oid). Thêm test cho
filter dùng ISODate và new Date.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(mongo): decode $date extended JSON trong filter query

json_filter_value_to_bson chỉ chuyển {"$oid":...} nên filter chứa {"$date":...}
bị gửi thẳng lên server: { field: {"$date":...} } lỗi "unknown operator: $date",
còn { field: {"$gte": {"$date":...}} } so sánh với sub-document nên không khớp gì
(trả về rỗng).

Thêm nhánh parse_extended_json_date vào json_filter_value_to_bson, đồng bộ với
json_value_to_bson (vốn đã hiểu $date/$oid). Thêm test cho cả equality và $gte.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 18:21:15 +08:00
t8y2 7e7c4944e9 refactor(desktop): organize lib modules by domain 2026-07-04 13:53: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 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