Azure Cosmos DB driver

Abierto
#2,497 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
azure, swift
Área
databases

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Swift
Estrellas
6.2k
Forks
412
Merge medio
3 h 56 min
PR fusionados (30 d)
669

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de TableProApp/TablePro

Todos los issues de TableProApp/TablePro

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.