DatabaseClient,
as created by the static factory method.
DatabaseClient#create(ConnectionFactory)
| Modifier and Type | Class and Description |
|---|---|
| private static class | DefaultDatabaseClient.
Invocation handler that suppresses close calls on R2DBC Connections. |
| pack-priv static class | DefaultDatabaseClient.
Holder for a connection that makes sure the close action is invoked atomically only once. |
| pack-priv class | DefaultDatabaseClient.
Default |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final BindMarkersFactory | |
| private final ConnectionFactory | |
| private final ExecuteFunction | |
| private final Log | |
| private final NamedParameterExpander |
| Access | Constructor and Description |
|---|---|
| pack-priv | DefaultDatabaseClient(BindMarkersFactory bindMarkersFactory, ConnectionFactory connectionFactory, ExecuteFunction executeFunction, boolean namedParameters)
|
| Modifier and Type | Method and Description |
|---|---|
| private Publisher | Returns: aPublisher that completes successfully when the connection is closedto close. connection)Release the |
| private static Connection | Returns: the Connection proxythe R2DBC Connection to create a proxy for con)Create a close-suppressing proxy for the given R2DBC Connection. |
| private Mono | |
| public ConnectionFactory | getConnectionFactory()
Implements org. ConnectionFactory that this client uses.
|
| private static String | |
| public <T> Mono | inConnection(Function<Connection, Mono<T>>
the callback object that specifies the connection action action)Implements org. Function within a Connection scope.
|
| public <T> Flux | inConnectionMany(Function<Connection, Flux<T>>
the callback object that specifies the connection action action)Implements org. Function within a Connection scope.
|
| private ConnectionFactory | Returns: the ConnectionFactory (nevernull)Obtain the |
| public DatabaseClient. | sql(String
the SQL statement sql)Implements org. sql statement to run.
|
| public DatabaseClient. | sql(Supplier<String>
a supplier for the SQL statement sqlSupplier)Implements org. |
| private static Mono |