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.
Constructors
Functions
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.