Azure Cosmos DB driver

Aberta
#2,497 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
25/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Pouca atividade
Stack de tecnologia
azure, swift
Domínio
databases

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Swift
Estrelas
6.2k
Forks
412
Merge médio
3h 56min
PRs com merge (30d)
669

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TableProApp/TablePro

Todas as issues de TableProApp/TablePro

Issues semelhantes

Mais issues de Swift

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.