spring-framework / org.springframework.r2dbc.core

Package org.springframework.r2dbc.core

Functions

await

Coroutines variant of DatabaseClient.GenericExecuteSpec.then.

suspend fun GenericExecuteSpec.await(): Unit

awaitOne

Non-nullable Coroutines variant of RowsFetchSpec.one.

suspend fun <T> RowsFetchSpec<T>.awaitOne(): T

awaitOneOrNull

Nullable Coroutines variant of RowsFetchSpec.one.

suspend fun <T> RowsFetchSpec<T>.awaitOneOrNull(): T?

awaitRowsUpdated

Coroutines variant of UpdatedRowsFetchSpec.rowsUpdated.

suspend fun UpdatedRowsFetchSpec.awaitRowsUpdated(): Int

awaitSingle

Non-nullable Coroutines variant of RowsFetchSpec.first.

suspend fun <T> RowsFetchSpec<T>.awaitSingle(): T

awaitSingleOrNull

Nullable Coroutines variant of RowsFetchSpec.first.

suspend fun <T> RowsFetchSpec<T>.awaitSingleOrNull(): T?

bind

Extension for DatabaseClient.GenericExecuteSpec.bind providing a variant leveraging reified type parameters

fun <T : Any> GenericExecuteSpec.bind(index: Int, value: T?): GenericExecuteSpec!
fun <T : Any> GenericExecuteSpec.bind(name: String, value: T?): GenericExecuteSpec!

flow

Coroutines Flow variant of RowsFetchSpec.all.

fun <T : Any> RowsFetchSpec<T>.flow(): Flow<T>