public static interface DatabaseClient.Builder
DatabaseClient
.Modifier and Type | Method and Description |
---|---|
DatabaseClient.Builder |
apply(Consumer<DatabaseClient.Builder> builderConsumer)
Configures a
Consumer to configure this builder. |
DatabaseClient.Builder |
bindMarkers(BindMarkersFactory bindMarkers)
Configure the
BindMarkers to be used. |
DatabaseClient |
build()
Builder the
DatabaseClient instance. |
DatabaseClient.Builder |
connectionFactory(ConnectionFactory factory)
Configure the
R2DBC connector . |
DatabaseClient.Builder |
executeFunction(ExecuteFunction executeFunction)
Configure a
ExecuteFunction to execute Statement objects. |
DatabaseClient.Builder |
namedParameters(boolean enabled)
Configure whether to use named parameter expansion.
|
DatabaseClient.Builder bindMarkers(BindMarkersFactory bindMarkers)
BindMarkers
to be used.DatabaseClient.Builder connectionFactory(ConnectionFactory factory)
R2DBC connector
.DatabaseClient.Builder executeFunction(ExecuteFunction executeFunction)
ExecuteFunction
to execute Statement
objects.Statement.execute()
DatabaseClient.Builder namedParameters(boolean enabled)
true
.enabled
- true
to use named parameter expansion;
false
to disable named parameter expansionNamedParameterExpander
DatabaseClient.Builder apply(Consumer<DatabaseClient.Builder> builderConsumer)
Consumer
to configure this builder.DatabaseClient build()
DatabaseClient
instance.