MotherDuck connections

Aperta
#2,489 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
swift
Ambito
databases

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Swift
Stelle
6.2k
Fork
412
Merge medio
3h 56m
PR unite (30g)
669

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TableProApp/TablePro

Tutte le issue di TableProApp/TablePro

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.