# R2dbcResult

class R2dbcResult : ResultApi

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

## Functions

close
Link copied to clipboard
open override fun close()
collect
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.

mapRows
Link copied to clipboard
open override fun <T> mapRows(block: (RowApi) -> T?): Flow<T?>
mapSegments
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.

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

Returns the count of rows collected from this ResultApi.

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

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

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