R2dbcResult

Class responsible for wrapping a Result generated by executing a statement that queries an R2DBC database.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
suspend fun collect()

Terminal flow operator that triggers the final collection of the original flow of results, but without transforming or emitting any values.

Link copied to clipboard
open override fun <T> mapRows(block: (RowApi) -> T?): Flow<T?>
Link copied to clipboard
fun <T : Any> mapSegments(block: (Result.Segment) -> Flow<T>): Flow<T>

Returns a Flow containing the results of applying the given transform function block to each original Result.Segment generated by executing a statement.

Link copied to clipboard
suspend fun ResultApi.rowsCount(): Int

Returns the count of rows collected from this ResultApi.

Link copied to clipboard
fun rowsUpdated(): Flow<Int>

Returns a Flow containing the number of rows updated by executing a statement.

Link copied to clipboard
open override fun toString(): String