R2dbcPreparedStatementApi

Base class representing a precompiled SQL io.r2dbc.spi.Statement from the R2DBC SPI.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun addBatch()

Adds parameters to the statement's batch of SQL commands.

Link copied to clipboard
abstract suspend fun cancel()

Cancels the statement, if supported by the database.

Link copied to clipboard
abstract suspend fun closeIfPossible()

Closes the statement, if still open, and releases any of its database and/or driver resources.

Link copied to clipboard
abstract suspend fun executeBatch(): List<Int>

Executes batched SQL statements stored as an io.r2dbc.spi.Statement.

Link copied to clipboard
abstract suspend fun executeMultiple(): List<StatementResult>

Executes multiple SQL statements stored in a single io.r2dbc.spi.Statement.

Link copied to clipboard
abstract suspend fun executeQuery(): R2dbcResult

Executes an SQL query stored in an io.r2dbc.spi.Statement.

Link copied to clipboard
abstract suspend fun executeUpdate(): Int

Executes an SQL statement stored in an io.r2dbc.spi.Statement.

Link copied to clipboard
open fun fillParameters(args: Iterable<Pair<IColumnType<*>, Any?>>): Int
Link copied to clipboard
Link copied to clipboard
abstract suspend fun getResultRow(): R2dbcResult?

The R2dbcResult generated by the executed statement, or null if none was retrieved.

Link copied to clipboard
open operator fun set(index: Int, value: Any)
abstract fun set(index: Int, value: Any, columnType: IColumnType<*>)
Link copied to clipboard
abstract fun setArray(index: Int, type: String, array: Array<*>)
abstract fun setArray(index: Int, type: ArrayColumnType<*, *>, array: Array<*>)
Link copied to clipboard
abstract suspend fun setFetchSize(value: Int?)

Set the number of result set rows that should be fetched when generated by an executed statement.

Link copied to clipboard
abstract fun setInputStream(index: Int, inputStream: InputStream, setAsBlobObject: Boolean)
Link copied to clipboard
abstract fun setNull(index: Int, columnType: IColumnType<*>)
Link copied to clipboard
abstract suspend fun setTimeout(value: Int?)

Set the number of seconds the R2DBC driver will wait for a statement to execute.