Open
Milestone
Description
What
infoctl query opens the catalog with mode=rwc, so a zero-byte or non-SQLite catalog.db is created or has catalog tables written into it on the first open. #46 only added the existence check; this ticket makes the query path read-only.
Done when
- A zero-byte or non-SQLite catalog file is refused with a named error and left unchanged.
- The query path opens SQLite with
mode=ro, through a read-only variant ofWarehouse::open_localor a flag, so no read-only command can create catalog tables. - A test for each: the refused file is byte-identical after the command, and a fresh catalog opened read-only gains no tables.
Points
3
Metadata
Metadata
Assignees
Labels
No labels
Activity