MongoDB driver for the Linux app

オープン
#3,646 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker, linux, mongodb, rust
領域
backend, database

調査の方向性

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 の本文から書いたものです。

説明

enhancement platform-linux
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_path pointed at the system bundle, so a server certificate is checked against the same roots as the other engines (ADR 0009).
  • A crates/drivers/mongodb crate reached through the app's transport. Through an SSH tunnel, connect to the one host with directConnection, 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 find and aggregate style queries with their own grammar, and the history check skips any that carry credentials.
  • Read-only connections refuse writes before they are sent, including aggregate with $out or $merge.
  • Stop a running operation with killOp or 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分
マージ済み PR(30日)
669

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TableProApp/TablePro のほかの issue

TableProApp/TablePro の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。