public interface DatabaseClient
Use one of the static factory methods create(ConnectionFactory)
or obtain a builder()
to create an instance.
Modifier and Type | Interface and Description |
---|---|
static interface |
DatabaseClient.BindSpec<S extends DatabaseClient.BindSpec<S>>
Contract for specifying parameter bindings.
|
static interface |
DatabaseClient.Builder
A mutable builder for creating a
DatabaseClient . |
static interface |
DatabaseClient.GenericExecuteSpec
Contract for specifying a SQL call along with options leading to the exchange.
|
static interface |
DatabaseClient.GenericInsertSpec<T>
Contract for specifying
INSERT options leading to the exchange. |
static interface |
DatabaseClient.GenericSelectSpec
Contract for specifying
SELECT options leading to the exchange. |
static interface |
DatabaseClient.InsertIntoSpec
Contract for specifying
SELECT options leading to the exchange. |
static interface |
DatabaseClient.InsertSpec<T>
Contract for specifying
INSERT options leading to the exchange. |
static interface |
DatabaseClient.SelectFromSpec
Contract for specifying
SELECT options leading to the exchange. |
static interface |
DatabaseClient.SelectSpec<S extends DatabaseClient.SelectSpec<S>>
Contract for specifying
SELECT options leading to the exchange. |
static interface |
DatabaseClient.SqlSpec
Contract for specifying a SQL call along with options leading to the exchange.
|
static interface |
DatabaseClient.TypedExecuteSpec<T>
Contract for specifying a SQL call along with options leading to the exchange.
|
static interface |
DatabaseClient.TypedInsertSpec<T>
Contract for specifying
SELECT options leading the exchange. |
static interface |
DatabaseClient.TypedSelectSpec<T>
Contract for specifying
SELECT options leading to the exchange. |
Modifier and Type | Method and Description |
---|---|
static DatabaseClient.Builder |
builder()
Obtain a
DatabaseClient builder. |
static DatabaseClient |
create(io.r2dbc.spi.ConnectionFactory factory)
Creates a
DatabaseClient that will use the provided ConnectionFactory . |
DatabaseClient.SqlSpec |
execute()
Prepare an SQL call returning a result.
|
DatabaseClient.InsertIntoSpec |
insert()
Prepare an SQL INSERT call.
|
DatabaseClient.Builder |
mutate()
Return a builder to mutate properties of this database client.
|
DatabaseClient.SelectFromSpec |
select()
Prepare an SQL SELECT call.
|
DatabaseClient.SqlSpec execute()
DatabaseClient.SelectFromSpec select()
DatabaseClient.InsertIntoSpec insert()
DatabaseClient.Builder mutate()
static DatabaseClient create(io.r2dbc.spi.ConnectionFactory factory)
DatabaseClient
that will use the provided ConnectionFactory
.factory
- The ConnectionFactory
to use for obtaining connections.DatabaseClient
. Guaranteed to be not null.static DatabaseClient.Builder builder()
DatabaseClient
builder.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.