Repository navigation
Conversation
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://d1-export-virtual-tables.previews.developers.cloudflare.com (commit db2d49b)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
|
Worker Preview URL: https://gh-d1-export-virtual-tables.previews.developers.cloudflare.com Files with changes (up to 15) |
|
@ivoryibu This draft pull request has had no activity for 3 days. It will close after 7 days of inactivity. Transition to ready for review if ready. A codeowner can comment |
|
@ivoryibu Closing this draft pull request after 7 days of inactivity. Re-open at a later date and transition to ready for review when you are ready if you seek review. |
Typically, changelog entries should be dated the day they merge. This is not blocking — if the date is unintentional, please update it. |
|
|
||
| You can now export a D1 database that contains virtual tables, such as full-text search tables using SQLite's [FTS5 module](https://www.sqlite.org/fts5.html) or spatial index tables using the `R*Tree` module. Previously, export failed for any database containing virtual tables. | ||
|
|
||
| To include virtual tables in the dump, set `dump_options.compatibility` to `sqlite3_cli_only` on the [D1 export API](/api/resources/d1/subresources/database/methods/export/). The same option is available as a flag on `wrangler d1 export` and in the Cloudflare CLI. |
There was a problem hiding this comment.
I still need to open the MR for wrangler, I will do so tomorrow morning. CF CLI is not supported yet because the export command currently doesn't work.
Summary
Adds a D1 changelog entry for exporting databases that contain virtual tables (FTS5 full-text search tables,
R*Treespatial index tables). Databases containing virtual tables previously could not be exported at all.dump_options.compatibilityset tosqlite3_cli_only, producing a dump compatible with the SQLite CLI.2026-10-28so the entry publishes on that date, leaving time for last-minute changes before it goes live.Follow-ups to complete before the publish date:
wrangler d1 export. The option is not yet shipped in a published wrangler release, so the entry currently says the option is available onwrangler d1 exportand in the Cloudflare CLI without naming the flag./d1/best-practices/import-export-data/#export-a-d1-database-with-virtual-tables) that is being added in a separate docs PR — the two should land together.Documentation checklist