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
Functions
Pins the catalog this execution will read, and builds the mappers over it.
Executes a statement that changes rows without returning any — INSERT, UPDATE, DELETE.
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.