inspect: open the archive read-only #34

Merged
jcoffey-dev merged 1 commits from fix/inspect-read-only into main 2026-10-30 15:05:07 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 3ee9167afc inspect: open the archive read-only
ci / test (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 3m31s
ci / announce (pull_request) Skipped
inspect went through init::open, which creates a missing archive and
brings an older layout up to date. It now uses init::open_read_only:
a missing path or a file that isn't an archive is an error, an archive
missing part of today's schema is refused rather than changed, and an
archive another run holds is reported as in use.

A closed archive has no -wal file and is opened immutable, so reading it
leaves nothing beside it; SQLite otherwise adds -shm and -wal files even
for a read-only connection. With a -wal there, it is opened read-only so
an interrupted run's writes are shown.
2026-10-30 08:01:19 -07:00