MotherDuck connections

Offen
#2,489 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
swift
Bereich
databases

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Swift
Sterne
6.2k
Forks
412
Ø Merge
3 Std. 56 Min.
Gemergte PRs (30 T.)
669

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TableProApp/TablePro

Alle Issues in TableProApp/TablePro

Ähnliche Issues

Weitere Issues zu Swift

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.