Add --create-wal option to datasette serve

--create creates missing database files but leaves them in the default
rollback journal mode. WAL mode is useful for databases that will
accept writes, so this adds a --create-wal option that both creates
missing files and sets them to WAL mode.

Refs #1756
This commit is contained in:
seger 2026-10-07 16:46:38 +00:00
commit ac5954bd31
3 changed files with 44 additions and 2 deletions

View file

@ -132,6 +132,8 @@ Use ``--internal PATH`` or the ``DATASETTE_INTERNAL`` environment variable to pe
--pdb Launch debugger on any errors
-o, --open Open Datasette in your web browser
--create Create database files if they do not exist
--create-wal Create database files if they do not exist, in
WAL mode
--crossdb Enable cross-database joins using the /_memory
database
--nolock Ignore locking, open locked files in read-only