.duckdb file to open a database, or a .parquet, .csv, .tsv, .json or .ndjson file to read it where it sits. DuckDB 2.0.1 is compiled into the driver, so nothing runs as a server unless you point the connection at one. A .duckdb file the connection creates or attaches stays readable by DuckDB 1.x.
The DuckDB driver is not in the app. Picking DuckDB in the Choose a Database sheet offers the
download before the form opens, and opening a saved DuckDB connection installs it without asking.
See Plugins.
Quick setup
1
Create the connection
Click New Connection… or press
Cmd+N, then choose DuckDB.2
Choose a file
Leave Connection Type on Local File and click Choose…, or New… to name a
.duckdb file that does not exist yet. Type :memory: in the field instead for a database that lasts as long as the session.3
Connect
Click Save & Connect.


DuckDB connection form
What the file field accepts
In Local File mode the path is the whole connection, and it is required; the form shows no host, port or Database field, and the editor has no SSH & Proxies pane.
Double-click a
.duckdb or .ddb file in Finder to open it here. .parquet files list TablePro under Open With rather than taking the association; to make a double-click open them here, select one in Finder, press Cmd+I, set Open with to TablePro, and click Change All…. .csv, .tsv, .json and .ndjson open from the connection form only.
A DuckDB database carries DUCK eight bytes in, so a database opens under any name: drag warehouse.db onto a window and it reaches this driver rather than SQLite. The data formats need their extension either way, because the reader is chosen from it. Installing the plugin is offered first when it is not already there.
Remote (Quack)
Quack is DuckDB’s client-server protocol, served byquack_serve. Set Connection Type to Remote (Quack, experimental):
Save & Connect attaches the remote to an in-memory DuckDB. Reach it through the alias:
SELECT * FROM remotedb.main.orders. Token, SSL Mode and the certificate fields are all the connection uses: a remote session reads no secret saved with CREATE PERSISTENT SECRET in ~/.duckdb/stored_secrets, so a token or pin stored there for the server has no effect.
For a server this Mac cannot reach directly, Remote mode adds an SSH & Proxies pane with SSH Tunnel, Cloudflare Tunnel, SOCKS Proxy and Tunnel Command. Host and Port stay the server’s own, named as the far end of the tunnel reaches it: localhost for a server on the SSH server itself. Then pick the SSL Mode from Through a tunnel.
The macOS build links neither the
quack extension nor httpfs, which carries HTTPS under every SSL Mode but Verify Fingerprint. DuckDB downloads each from extensions.duckdb.org the first time a connection needs it and caches it under ~/.duckdb, so that connect needs to reach that host.MotherDuck
Set Connection Type to MotherDuck and paste an access token, which MotherDuck’s settings issue under Access Tokens.
Save & Connect attaches MotherDuck to an in-memory DuckDB and lands on the named database, or on the account’s default when Database is empty:
my_db on a new account. Each MotherDuck database is a database in the sidebar, and Cmd+K moves between them. Files listed under Attached Databases on the Advanced pane attach beside them, so a local table and a cloud one join in one query.
The first connect downloads the motherduck extension, about 80 MB, from extensions.duckdb.org and ext.motherduck.com. Every connect after that still checks api.motherduck.com.
Connection URL
sslmode sets SSL Mode, ssl_fingerprint sets Verify Fingerprint and its pin, and a connection behind an SSH tunnel copies as quack+ssh://. DuckDB remote has every value. A MotherDuck connection copies as md: and its database, without the token, and that string fills the form back in.
Databases and schemas
A connection opens one database named after the file:analytics.duckdb becomes analytics, schema main. ATTACH a second file and it joins the sidebar as a sibling database after a refresh:
Cmd+K to move between them, in place, with no reconnect. An ATTACH typed in the editor lasts until the next connect. To keep a file attached, add it under Attached Databases on the connection’s Advanced pane: every connect attaches it again, named after its file without the extension, and a file that is missing is named in a warning while the rest attach. With Open the File Read-Only on, they attach read-only as well. system and temp are hidden, and with them information_schema and pg_catalog.
Any connection can also read a file straight from SQL:
Sharing the file with another process
One process writes a DuckDB file at a time, and the lock lasts as long as the connection. While a tab is open onsales.duckdb, duckdb sales.duckdb in a terminal is refused, and so is a notebook, a dbt run, or a second TablePro window.
Three ways out, on the connection’s Advanced pane:
Database ▸ Release File Lock hands it back now, without ending the session. The tabs, the schema cache and the row you were on all stay; the next query takes the file again.
A release is refused, with the reason, while the session holds anything reopening would destroy: an open transaction, a temporary table or view, a database attached from the editor, or a changed setting. The connection’s own Attached Databases attach again on reopen. Commit the transaction or drop the temporary table and the release goes through.
Read-only is not a way to keep writing from somewhere else. A read-write connection blocks every other process, read-only ones included; a read-only connection blocks writers. Two readers work, a reader and a writer do not.
Releasing hands the file to whoever wants it next, which may not be you. A query run after another process has taken it fails until that process lets go; reconnect once it has.
Back up and restore
File > Backup Dump… runs over the open connection. It copies the whole database into a.duckdb file, or exports it as a folder of Parquet files. File > Restore Dump… takes the .duckdb file. For the folder, and what each format carries, see Backup & Restore.
SSL/TLS
A local file has no TLS. A remote connection’s SSL Mode sits on General with the other Remote fields and starts on Automatic. Leave it there unless the server’s certificate comes from a private CA or fromquack_serve itself. No mode falls back to another: a mismatch stops the connect with a message naming the setting to change.
Trusting a private CA
DuckDB never reads the macOS keychain. A CA trusted there, bymkcert -install or in Keychain Access, does not make its certificates pass under Automatic. Give DuckDB the CA file instead:
1
Find the CA file
Use the PEM certificate of the CA that signed the server’s. For mkcert that is
rootCA.pem, in the folder this prints:2
Choose it
Set SSL Mode to Verify Identity, click Choose… beside CA Certificate, and pick the file.
openssl x509 -inform der -in ca.der -out ca.pem.
The connection then trusts that CA on top of /etc/ssl/cert.pem for every HTTPS read it makes, read_parquet('https://…') in its editor included. Other connections are unaffected. With CA Certificate left empty, Verify Identity checks against /etc/ssl/cert.pem alone, and uses HTTPS even to localhost.
Pinning the server’s certificate
Started without a certificate of its own,quack_serve generates one that names no host, so no CA check can pass it. Set SSL Mode to Verify Fingerprint and paste the certificate’s SHA-256 fingerprint into Certificate Fingerprint. On the server, the ssl_fingerprint column holds it:
openssl prints the same value:
sha256: in front. Once the server has a new certificate, the pin fails until you paste the new fingerprint.
Through a tunnel
A tunnel hands DuckDB a port on127.0.0.1 in place of the server’s name, so no mode checks the certificate’s name there. Host on General still decides what Automatic does.
Verify Identity, and Automatic with any Host but
localhost, 127.0.0.1 or ::1, are refused before DuckDB dials, with a message naming the modes that work.
Limitations
- A DuckDB file takes one writer at a time. A connect against a file another process holds fails, naming that process and its process ID. Quit the
duckdbCLI, the Python process or the other TablePro window first, or set Release the File Lock After. - A data file opened through Choose… is read-only, and the file on disk is left byte for byte identical. To change its contents, open a
.duckdbdatabase and runCREATE TABLE t AS SELECT * FROM 'data.parquet'. - Remote (Quack) lists no tables in the sidebar. Write them out by name through the alias.
- Safe Mode counts every MotherDuck
md_function as a write, the listing ones included, and themd_drop_andmd_delete_ones as destructive. Under Read-Only, runSHOW DATABASESto list databases. - Local File has no tunnel. To reach a file on another machine, serve it there with
quack_serveand connect in Remote mode. - Quack takes no client certificate. Token is the only credential a remote connection sends.
- A remote connection’s editor sees no persistent secret, an S3 one included, so a read that needs it fails. Run
CREATE SECRETin the session instead; it lasts until the connection closes. Local File connections read persistent secrets. - Required (skip verify) turns the certificate check off for every HTTPS read the connection makes,
read_parquet('https://…')in the editor included. Pin the server with Verify Fingerprint to keep those reads checked. - No creating or dropping a database.
ATTACHis the way to reach a second file. - An expression, subquery or view chain nested more than 250 levels deep fails, where the
duckdbCLI allows 1,000. A file whose constraints nest deeper opens and lists its tables, but reading their structure fails. Flatten the expression, or runSET max_expression_depthin the editor for that session.
Troubleshooting
Max expression depth limit of 250 exceeded
The statement, or a constraint, default, view or macro it reads, nests deeper than 250 levels. Check the expression the message points at, and the constraints of the tables the query reads. Flatten it, or raise the limit for the session withSET max_expression_depth; past about 500 levels DuckDB can then crash TablePro.
No file at …
A data-file path that is not there. Only.duckdb and .ddb are created on demand. Re-pick the file with Choose….
DuckDB opened the file but reported no catalog to browse
The file opened and exposed nothing to list. Check that it is a DuckDB database and not a file with a borrowed extension.… is using sales.duckdb
Another process holds the file. The message names it and its process ID. Quit it, or turn on Open the File Read-Only when the message says read-only would get in, which it does when the other process is itself a reader.The database file is no longer at …
The file moved or was deleted while the connection was idle with its lock released. Point the connection at the new path, or restore the file, then reconnect.Token is required
Token is empty, and every Quack server has one. Find thetoken argument quack_serve was started with on the server, and enter it in Token. A token saved as a persistent DuckDB secret is not read.
Access Token is required
Access Token is empty on a MotherDuck connection. Without one, MotherDuck would start a browser sign-in, so the connect stops first. Create a token in MotherDuck’s settings, under Access Tokens.MotherDuck does not accept the DuckDB version this plugin uses yet
MotherDuck supports each DuckDB release on its own schedule, and this driver runs DuckDB 2.0.1. The connection works once MotherDuck supports that version; nothing changes on this Mac.MotherDuck did not accept the Access Token
The token is incomplete, expired or revoked. Copy it again from MotherDuck’s settings, or create a new one.DuckDB could not load its MotherDuck extension
The download or the version check could not reachextensions.duckdb.org, ext.motherduck.com or api.motherduck.com. Allow those hosts through the firewall or proxy, then connect again.
TablePro could not reach MotherDuck
The extension loaded, and MotherDuck itself did not answer before the connect timed out. Check the network, then connect again.Port must be a number between 1 and 65535
Port holds something else. The Quack default is9494.
This connection sets Connection Type to MotherDuck, which the installed DuckDB driver does not support yet
The loaded DuckDB driver predates MotherDuck, so the connect is refused rather than opened as a local file. Update the driver as the next entry describes.This connection sets SSL Mode, which the installed DuckDB driver does not support yet
The loaded DuckDB driver is older than SSL Mode, and this connection sets a mode other than Automatic, so it is refused before anything is dialed. After an app update the new driver downloads in the background and loads at the next launch. Check the driver’s row in Settings > Extensions, relaunch once it reads “Updates when TablePro relaunches”, then connect again. Updates has the details.DuckDB could not install its … extension
The first remote connect downloadsquack, and httpfs for HTTPS, from extensions.duckdb.org, and this Mac could not reach that host. DuckDB’s own reason follows the message. Allow the host through the firewall or proxy, then connect again; once installed, the extension loads with no network.
DuckDB could not verify the server’s certificate
The server’s certificate was signed by a CA that neither/etc/ssl/cert.pem nor CA Certificate holds, or it names another host. A CA trusted only in the macOS keychain counts as neither. Choose the CA file under Verify Identity, or pin the certificate under Verify Fingerprint, as SSL/TLS shows.
The server uses HTTPS, and this connection sent plain HTTP
SSL Mode is Disabled, or Automatic with a local Host, and the server speaks TLS. Set it to Verify Identity, or to Verify Fingerprint for a self-signed certificate. Through a tunnel, use Verify Fingerprint or Required (skip verify).The server did not answer the TLS handshake
The connection used HTTPS, and the server serves plain HTTP or is not a Quack server. Check howquack_serve was started. For plain HTTP, set SSL Mode to Disabled.
The server’s certificate does not match the Certificate Fingerprint
The server now presents a different certificate from the one pinned, or another server answered. Readssl_fingerprint again from FROM quack_server_list(); on the server and paste it into Certificate Fingerprint.
The Certificate Fingerprint is not a SHA-256 fingerprint
Certificate Fingerprint holds something other than 64 hex digits, a 40-digit SHA-1 fingerprint for instance. Copy it again fromquack_server_list(), or from openssl x509 -noout -fingerprint -sha256 -in cert.pem.
The CA Certificate at … is not a PEM certificate
The file under CA Certificate is DER, or not a certificate at all. Convert a DER file withopenssl x509 -inform der -in ca.der -out ca.pem, then choose ca.pem.
TablePro could not read the CA Certificate at …
The file moved, or its permissions keep it from being read. The reason follows the path. Pick the file again with Choose….DuckDB could not read the CA Certificate
The file under CA Certificate starts like PEM, and DuckDB still rejected it. Check that it holds whole-----BEGIN CERTIFICATE----- blocks, or export the CA again as PEM.
Verify Identity does not work through a tunnel
SSL Mode is Verify Identity and the SSH & Proxies pane has a tunnel selected. DuckDB dials the tunnel on127.0.0.1, so the certificate would be checked against that rather than the server’s name. Set SSL Mode to Verify Fingerprint, or to Required (skip verify).
Automatic does not work through a tunnel to …
Host is notlocalhost, 127.0.0.1 or ::1, so Automatic would use HTTPS and check the certificate against 127.0.0.1. Set SSL Mode to Verify Fingerprint, Required (skip verify), or Disabled for a plain HTTP server. Or run quack_serve on localhost where the tunnel lands and set Host to localhost.
Related
- SSH Tunneling, for a remote server behind a bastion host
- TablePro for iPhone and iPad, where DuckDB opens a file picked through the Files app
- Import & Export

