Expand description
db query — pre-flight validate, then run under the request’s
optional timeout (threaded to postgres as statement_timeout
when set; uncapped when omitted).
Pre-flight rejects shapes the response variant can’t represent:
- multi-statement input (any unquoted
;followed by non-empty non-comment content), COPY ... TO STDOUT|STDIN(no FE/BE protocol path for it),- transaction control verbs (
BEGIN,START,COMMIT,END,ROLLBACK,SAVEPOINT,RELEASE) — the handler runs the user query inside its own read-only tx and these would collide.