The sql runner MUST take its input as { query, params? } and run it on a connection of the shape { query(text, params) -> rows, readOnly } that the host gives; it MUST refuse a connection that is not read-only, and MUST refuse a query that the guard of the SQL language library (@intellectual-frontiers/lang-sql/aide/guard) does not judge, in the dialect of the connection (ANSI where none is given), to be a single read: more than one statement, a write, a SELECT ... INTO and a PRAGMA that sets are refused by the tree, so a word in a string or a comment is not code; the value is the rows. It MUST import no database library.
Enforced (check): .github: cd commons/grc && bun run verify — suite/runners.test.ts
Proved by: grc/suite/runners.test.ts
Written in: grc/src/runners/sql/mod.ts
Tests: passed: suite/runners.test.ts the sql runner needs a read-only connection and a single read, and imports no database lib
Cited by: GRC, runners/sql/mod