Open the database read-only for report and trees (closes #8) #72

Merged
clawbot merged 1 commits from issue-8-read-only-report into next 2026-10-03 16:30:20 +02:00
1 Commits
Author SHA1 Message Date
clawbot 89a861a989 Open the database read-only for report and trees (closes #8)
check / check (push) Successful in 1m15s
report and trees now connect read-only (mode=ro, query_only, the same
busy timeout) and no longer set the journal mode, which is a write. A
read-only connection to a WAL database still needs its -wal and -shm
files, or write access to the directory to create them, so scan now
switches the database back to rollback-journal mode whenever it closes
it: between scans the file alone holds the database. If a report has
the database open at that moment the switch is refused; scan warns and
the database stays in WAL mode, with its -wal and -shm files, until the
next scan. README §Database states what readers need.

Model: opus-5-5
2026-10-03 14:06:24 +00:00