Skip to main content

Module gate

Module gate 

Source
Expand description

Read-only query gate: accepts one statement that is provably read-only, rejects the rest.

Structs§

Accepted
The gate’s verdict. sql is the text to run: the input, or the input with statistics-view references replaced. No call site may run the original text.
GateOptions
Limits and switches for check.
Rejection

Enums§

StatementKind

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.