Skip to content

Paid plans add features and fund TablePro’s development. Optional paid plans See plans

Cloudflare D1 client

Browse D1 databases in your Cloudflare account and run SQLite queries through its API.

Works on MacDriver downloads on first use of Cloudflare D1

Included in Free; paid plans add optional featuresOpen source (AGPL-3.0)

At a glance

Query language
SQL
Driver
Downloads on first use
Connect with
The service’s API
iPhone and iPad
Does not open

Connect with an API token

Enter a D1 database name or UUID, Cloudflare account ID and API Token. The token stays in the macOS Keychain. Requests use HTTPS; there is no host, port, TLS setting or SSH tunnel.

Create a token with Account > D1 > Edit permission and copy it when shown. It grants access to every D1 database in the account, not just the selected one.

Importing a d1://account-id/database-name URL fills in the account and the database; the token never travels in the URL, so paste it in afterwards.

Switch databases and query

Switch between the account’s D1 databases without reconnecting. The switcher also creates and drops databases. Existing tabs keep their starting database.

Queries use SQLite’s dialect. EXPLAIN QUERY PLAN is drawn as a diagram, and row edits wait in the grid until you save, with Preview SQL showing the statements first.

Write each statement so it stands on its own: a PRAGMA setting or a temporary table made by one statement is gone by the next, and every statement commits when it runs, with nothing to roll back. When Cloudflare rate-limits a request, the error carries the wait Cloudflare asked for before a retry.

Tables, indexes and triggers

The Structure tab creates and drops tables, adds and drops columns, and creates and drops indexes, including partial indexes with a WHERE condition; Preview SQL shows the DDL before you save. The Triggers tab creates, edits and drops triggers, and tables can be renamed from the sidebar.

A column reorder or a foreign key change means rebuilding the table. On D1, TablePro writes that rebuild script and hands it to you to run, because every statement is a separate request and no transaction can hold the rebuild together.

Move data

TablePro has no import for D1. Load a SQL file with wrangler d1 execute and its --file option, then browse the result here. Export writes a D1 table or a query result as CSV, JSON, SQL, XLSX, Markdown, HTML and XML.

iPhone and iPad

The iPhone and iPad app has no Cloudflare D1 driver. Cloudflare D1 connections synced from a Mac appear in its list but do not open.

Limits

  • Each statement is a separate HTTP request: no session state carries over, and transactions are not supported.

Questions about Cloudflare D1

Does TablePro use D1’s Sessions API?

No. Each statement goes out as its own request, with no session and no bookmark, so nothing carries over from one statement to the next, in one tab or across tabs.

Do I need Wrangler installed?

Not to browse, query or edit: TablePro talks to Cloudflare’s API directly. Wrangler is only needed to load a SQL file, since TablePro has no import for D1.

Get TablePro

Download the Mac app for free. Starter and Team add optional features.
Download for Mac

Requires macOS 13 Ventura or later

See pricing