Skip to content

cli: open the catalog read-only for infoctl query #104

Open

Description

@codecapo

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 of Warehouse::open_local or 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

Refs #93, #46.

Activity

  1. added this to the 0.1.0 milestone on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions