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 摘要。