MongoDB driver for the Linux app
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
调研方向
Start with linux/docs/adding-drivers.md, especially section 7, and the MongoDB entry in linux/ROADMAP.md; inspect the existing Linux driver crates and app transport to understand the integration points. The work includes trust store handling, SSH and SRV connections, document editing, query safety, operation cancellation, conformance tests, a replica set fixture, and driver documentation. Done means the listed connection modes, collection browsing, paging, and field editing work, and the driver checklist is complete.
由索引模型根据 Issue 内容生成。
描述
Problem
The Linux app has no MongoDB driver (linux/README.md, Status), while the macOS app opens MongoDB connections through its plugin.
linux/ROADMAP.md, Backlog, More engines lists MongoDB with the client, mongodb 3.x with default features off and rustls-tls-aws-lc, and one condition: "It must use the system trust store first: it fills its roots from webpki-roots unless ca_file_path is set, so it needs native roots upstream or ca_file_path set to the platform bundle."
Like Redis, MongoDB does not speak SQL, and the driver contract assumes SQL through SqlDialect and SqlGrammar (linux/docs/adding-drivers.md, section 7).
Proposed solution
- Meet the trust store condition first: native roots in the mongodb crate upstream, or
ca_file_pathpointed at the system bundle, so a server certificate is checked against the same roots as the other engines (ADR 0009). - A
crates/drivers/mongodbcrate reached through the app's transport. Through an SSH tunnel, connect to the one host withdirectConnection, since replica set members advertise names the tunnel does not reach. - Decide how documents fit the grid and the editor, and record it in
linux/docs/adding-drivers.md:- the sidebar lists databases and collections;
- a collection opens as a grid of top-level fields, with nested documents and arrays shown as JSON and edited as JSON, checked before saving, as JSON cells are today;
- the editor runs
findandaggregatestyle queries with their own grammar, and the history check skips any that carry credentials.
- Read-only connections refuse writes before they are sent, including
aggregatewith$outor$merge. - Stop a running operation with
killOpor by closing the cursor, as the contract requires. - The conformance suites that apply, a Docker fixture with a replica set, and a page in
linux/docs/drivers/.
Done means: a MongoDB connection, direct, through an SSH tunnel or with mongodb+srv://, lists collections, pages documents and edits a field, and the adding-drivers.md checklist is complete.
Alternatives considered
No response
Platform
Linux
Related database type
MongoDB
- 主要语言
- Swift
- 星标
- 6.2k
- 派生
- 412
- 平均合并
- 3 小时 56 分钟
- 30 天内合并 PR
- 669
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TableProApp/TablePro 的其他 Issue
-
Linux: Remember Password fails silently when there is no default keyring可能已有人在做 @datlechin 今天认领。 未关闭bug platform-linux
难度 2/5 1-3 小时 新手友好度 75/100
TableProApp/TablePro#4098 ·
维护者通常 1 天内回复
-
bug platform-linux
难度 2/5 1-3 小时 新手友好度 35/100
TableProApp/TablePro#4101 ·
维护者通常 1 天内回复
-
bug platform-linux
难度 4/5 3-5 天 新手友好度 48/100
TableProApp/TablePro#4099 · 3 条评论 ·
维护者通常 1 天内回复
-
enhancement platform-macos
难度 5/5 一周以上 新手友好度 25/100
TableProApp/TablePro#4071 ·
维护者通常 1 天内回复
-
enhancement platform-macos
难度 3/5 1-2 天 新手友好度 66/100
TableProApp/TablePro#4070 ·
维护者通常 1 天内回复
查看 TableProApp/TablePro 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 83/100
OneBusAway/vehicle-positions#260 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
eliasstravik/herdr-projects#789 · 1 条评论 ·
-
follow-up needs-triage S3: minor
难度 1/5 1-3 小时 新手友好度 85/100
manaflow-ai/cmux#38032 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
arkavo-org/ArkavoKit#70 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
vorssaint/vorssaint-utils#3933 · 1 条评论 ·
维护者通常 2 天内回复