Interface R2dbcOperations

    • Method Detail

      • connectionFactory

        @NonNull
        io.r2dbc.spi.ConnectionFactory connectionFactory()
        Obtains the connection factory.
        Returns:
        The connection factory
      • withTransaction

        @NonNull
        <T> org.reactivestreams.Publisher<T> withTransaction​(@NonNull
                                                             ReactiveTransactionStatus<io.r2dbc.spi.Connection> status,
                                                             @NonNull
                                                             ReactiveTransactionOperations.TransactionalCallback<io.r2dbc.spi.Connection,​T> handler)
        Execute the given handler with an existing transaction status.
        Type Parameters:
        T - The emitted type
        Parameters:
        status - An existing in progress transaction status
        handler - The handler
        Returns:
        A publisher that emits the result type
      • withConnection

        @NonNull
        <T> org.reactivestreams.Publisher<T> withConnection​(@NonNull
                                                            java.util.function.Function<io.r2dbc.spi.Connection,​org.reactivestreams.Publisher<T>> handler)
        Execute the given handler with a new connection.
        Type Parameters:
        T - The emitted type
        Parameters:
        handler - The handler
        Returns:
        A publisher that emits the result type