QueryExecutor
Handles the low-level execution of PostgreSQL queries over the wire protocol.
This executor manages communication with the database using both the Simple Query Protocol (for utility statements) and the Extended Query Protocol (for parameterized DML and DQL). It is responsible for parsing responses, managing the transaction state flag, and mapping results back into usable domain objects.
Properties
Functions
Opens the transaction a BEGIN is waiting on, for the one caller that talks to the server without an exchange of this class: a COPY, whose transfer outlives any single exchange. This one waits for the answer, a round trip of its own, before the COPY goes out.
Uses Extended Query Protocol (Parse, Bind, Execute, Sync). Intended for DML (INSERT, UPDATE, DELETE). Expects no rows returned. Returns the number of updated rows.
Uses Extended Query Protocol. Intended for DQL (SELECT). Returns a parsed list of rows (Row) immediately.
Uses Extended Query Protocol. Intended for DQL (SELECT). Returns a parsed list of elements using the provided transform function immediately.
Uses Extended Query Protocol. Intended for DQL (SELECT). Iterates over rows in batches of fetchSize and applies the given transform and block. A fetchSize of 0 is Execute's own "no limit": one batch carrying the whole result.