MotherDuck connections

Abierto
#2,489 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
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
swift
Área
databases

Línea de trabajo

Start by locating the DuckDB plugin's connection handling and how the app bundles libduckdb. Check how the MotherDuck extension can be downloaded on macOS, since the issue identifies that as a prerequisite. Done means the plugin accepts an md: connection with motherduck_token, shows hosted catalogs, schemas, and tables, and can attach a local file alongside MotherDuck where DuckDB allows it.

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

Descripción

enhancement platform-macos
Problem

The DuckDB plugin opens a local file or a remote DuckDB server over Quack (databases/duckdb.mdx), but a MotherDuck database cannot be reached at all.

The extension path is no longer the blocker it was. The macOS DuckDB build links core_functions, json, parquet, icu and autocomplete statically and keeps runtime autoloading on (apple/scripts/duckdb-macos-extensions.cmake), and the Remote (Quack) connection already opens an in-memory DuckDB, turns on autoinstall and autoload, runs INSTALL quack and LOAD quack, stores a token as a secret and attaches the remote (apple/Plugins/DuckDBDriverPlugin/DuckDBPlugin.swift:328). The motherduck extension can arrive the same way, from extensions.duckdb.org on first use.

Proposed solution
  • A MotherDuck connection type on the DuckDB form, next to Local File and Remote (Quack), taking a database name (or none for all of them) and a service token in a secure field kept in the Keychain.
  • Connect the way Quack does: an in-memory DuckDB, autoloading on, INSTALL motherduck and LOAD motherduck, the token passed as motherduck_token or a secret, then ATTACH 'md:…'.
  • Hosted databases, schemas and tables in the sidebar, which the Quack path does not list today.
  • Attach a local file alongside a MotherDuck database in one connection, where DuckDB allows it.
  • A clear error for the two likely failures: no route to extensions.duckdb.org on the first connect, and an extension build that does not match the bundled DuckDB version (apple/scripts/build-duckdb.sh:22).

Done means a MotherDuck connection with only a token lists the account's databases and runs a query.

Alternatives considered

The MotherDuck web UI.

Platform

macOS

Related database type

DuckDB

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.