MotherDuck connections

オープン
#2,489 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
swift
領域
databases

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Swift
スター
6.2k
フォーク
412
平均マージ
3時間 56分
マージ済み PR(30日)
669

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TableProApp/TablePro のほかの issue

TableProApp/TablePro の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。