Repository navigation
feat(duckdb): connect to MotherDuck and update DuckDB to 2.0.1 - #4461
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LOAD motherduck,SET motherduck_token, attach mode, amotherduck_connection_timeouttaken from the connect deadline,ATTACH 'md:...', then the named catalog orPRAGMA md_use_default. An empty or malformed token is refused before anything opens (no token starts MotherDuck's browser sign-in).md_/__md_calls are writes,md_drop_/md_delete_are destructive, and external clients (MCP, AI, URL, AppleScript) are refusedmd_*,get_md_token(),PRAGMA print_md_tokenand the other MotherDuck sign-in pragmas,prompt/embedding. Swift and Rust classifiers share the fixtures.md:<db>copies and pastes as a MotherDuck connection.quack://links now open as Remote (they opened as Local File) and match saved Quack rows by host, port and alias.ATTACHof a FIFO names the path as typed, not the link-resolved one.MotherDuck accepts DuckDB 2.0.1 server-side only from the day it enables it (measured 2026-11-23 with a real token:
ATTACH 'md:'on 2.0.1 returns "not yet supported"). The full statement sequence was run against the account with DuckDB 1.5.6: workspace and single mode, default database, a local file beside it, catalog listing, a query.Needs the maintainer:
libs-<n>frombuild-duckdb.sh/build-duckdb-ios.shat v2.0.1 (apple/RELEASING.md, Static libraries). Until then Apple builds keep DuckDB 2.0.0, whose MotherDuck extension refuses to load.Docs: TableProApp/docs#279
Test plan
TableProDuckDBCoreTests(97): MotherDuck plan, error classifier, loader init-failure stop.TableProSQLGrammarTests(581) and Rusttablepro-core,tablepro-mcp: MotherDuck tiers and outside-reach, shared fixtures.tablepro-driver-duckdbon 2.0.1:decode::nested_values_read_as_duckdb_prints_themfailed before the decode change;open_semantics::an_attach_of_a_fifo_is_refusedfailed on macOS before the path change.DriverSettingNotSupportedErrorTests,DatabaseURLConnectionMatchTests,ConnectionURLParserDuckDBTests,ConnectionURLFormatterTests,ConnectionDraftURLImportTests,TransientConnectionFactoryTests,PluginMetadataCuratedParityTestsagainst the built DuckDB plugin, the gate and classifier suites.AllPluginsand the iOS app build.Fixes #2489