Azure Cosmos DB driver

未關閉
#2,497 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
25/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
azure, swift
領域
databases

研究方向

Start by locating the registry plugin entry point and reading the existing MongoDB plugin, especially its JSON viewer integration. Then trace how database navigation, query execution, authentication, and query insights are handled. Done means the NoSQL API supports the listed authentication methods, databases and containers, document viewing, Cosmos SQL, and request-unit insights.

由索引模型根據 Issue 內容生成。

描述

enhancement platform-macos
Problem

Cosmos DB is not supported. Its API for MongoDB speaks the MongoDB wire protocol, so those accounts may connect through the MongoDB plugin, but that is untested and databases/mongodb.mdx does not mention Cosmos DB. The NoSQL API, which is the default, has no path at all.

Proposed solution

A registry plugin for the NoSQL API over the REST API:

  • Account key, resource token and Entra ID auth. The Entra ID sign-in in apple/Plugins/TableProPluginKit/Entra/ asks only for the Azure SQL scope (EntraOAuth.swift:99), so it needs a scope per resource before Cosmos DB can use it.
  • Databases and containers in the sidebar, documents in the grid through the JSON viewer MongoDB already uses.
  • Cosmos SQL in the editor.
  • Request units per query shown with the result, since RU is what the query costs. The BigQuery plugin reports bytes processed the same way (apple/Plugins/BigQueryDriverPlugin/BigQueryPluginDriver+Execution.swift:291).
Alternatives considered

Data Explorer in the Azure portal.

Platform

macOS

Related database type

N/A / General

主要語言
Swift
星號
6.2k
分支
412
平均合併
3 小時 56 分鐘
30 天內合併 PR
669

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

TableProApp/TablePro 的其他 Issue

查看 TableProApp/TablePro 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。