Expand description
Read-only query gate: accepts one statement that is provably read-only, rejects the rest.
Structs§
- Accepted
- The gate’s verdict.
sqlis the text to run: the input, or the input with statistics-view references replaced. No call site may run the original text. - Gate
Options - Limits and switches for
check. - Rejection
Enums§
Constants§
- SECRET_
SETTINGS - Settings whose values can expose credentials or local paths.
Functions§
- check
- Checks one SQL string and accepts it only when it is a single read-only statement.
- credential_
roots - The relations whose rows the statistics views hide, and the roots of the TOAST and view audits: the plain catalog tables and pg_largeobject.