Expand description
The raw-query guard (DESIGN-queries.md I3), mirrored from the TS core’s
query-guard.ts — the two cores enforce the same rule so query behaves
identically through every binding:
- READ-ONLY: only
select / with / explain / pragma / valuesmay run. A write against the local mirror bypasses the outbox (SPEC §7.1) and silently diverges from the server — writes go throughmutate. - ONE STATEMENT:
sqlite3_prepareparses only the first statement and silently ignores the tail; instead of ignoring, reject loudly.
Engine-internal reads use the connection directly and never route here.
Functions§
- assert_
read_ only_ query - Assert
sqlis one read-only statement;Err(message)otherwise.