NativeQuery
Represents a query that uses standard PostgreSQL positional parameters (e.g., $1, $2).
NativeQuery passes the provided SQL string and parameters directly to the underlying QueryExecutor without any intermediate parsing or modification of the SQL statement. It provides various execution methods to fetch rows, map results to Kotlin objects, extract single fields, or perform data modifications (updates).
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.
Executes the query and returns the first column of its single row, requiring exactly one row.
Executes the query and returns its single row, requiring exactly one.
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.
Names this query's parameters for a QueryContext and runs block under it.