NamedParameterQuery
Represents a query that accepts named parameters (e.g., @name, @id).
NamedParameterQuery parses the SQL to extract named parameters and maps them to positional parameters before delegating execution to the underlying QueryExecutor. It provides various execution methods to fetch rows, map results to Kotlin objects, extract single fields, or perform data modifications (updates).
A name repeated in the statement collapses to a single placeholder, so its value is supplied once. The parser leaves the rest of the statement alone: an @ inside a string literal, a quoted identifier, a comment or a $$ … $$ block is not a parameter, and neither are PostgreSQL's @-operators.
Every method here takes values either as a Map or as Pairs; the vararg forms simply build the map. A name the statement uses but the values omit raises InvalidOperationException MISSING_NAMED_PARAMETER; an extra value the statement does not use is ignored.
Properties
Parameter converters local to this query, chained to the session's. Converters here are tried first.
Result converters local to this query, chained to the session's. Converters here are tried first.
The session's type manager, resolving OIDs and holding the parent registries.
Functions
Executes the query and returns the first column of its single row.
Same as fetchField, with the values given as Pairs.
Executes the query and returns the first column of its single row, requiring exactly one row.
Same as fetchFieldStrict, with the values given as Pairs.
Executes the query and returns its single row, requiring exactly one.
Same as fetchRowStrict, with the values given as Pairs.
Registers a ParameterConverter for this query only, ahead of any the session already holds.
Registers a ResultConverter for this query only, ahead of any the session already holds.