OptionalautoOptionalbindAdvanced escape hatch for an already encoded bind section.
OptionalbindAdvanced escape hatch for an already encoded bind section.
OptionalbindsSets typed positional parameters; index 0 maps to SQL placeholder $1.
OptionalinitialOverrides session send-ahead credit. Zero explicitly disables flow control.
OptionalonNotification before this query is replayed after failover. Use it to clear results already consumed from the old connection. Overrides the session's onFailoverReset for this query; the callback is awaited before replay. The query's timeout keeps running meanwhile, and a query whose timeout expires first is not replayed.
OptionalresetAsk a capable server to reset its connection-scoped symbol dictionary. Silently omitted when the server lacks QUERY_FLAGS for rolling upgrades.
OptionaltimeoutPer-query timeout overriding the session default; zero disables it.
It bounds the whole query, measured from the query() call: waiting for a
previous query to drain, any reconnect, server execution, and the time
spent consuming results, which is not interrupted. Once it expires no
further batch is delivered and the query is cancelled. The outcome is the
server's answer: a statement that completed, or a result that ended with
nothing withheld, still succeeds; otherwise iteration and completion
reject with QwpEgressQueryTimeoutError. A cancellation the
application requested before the timeout is reported as such. If the
server has not ended the query within cancelDrainTimeoutMs, or the
connection is lost, the timeout is reported at once and the query is not
replayed. Capped at 2,147,483,647ms (the host timer ceiling); a larger
value throws a RangeError.
Replenishes positive initial credit by each RESULT_BATCH wire size after the async iterator advances past that batch. Defaults to true.