public interface PgPool extends Pool
| Modifier and Type | Method and Description |
|---|---|
static PgPool |
pool()
Like
pool(PoolOptions) with a default poolOptions. |
static PgPool |
pool(PgConnectOptions connectOptions,
PoolOptions poolOptions)
Create a connection pool to the database configured with the given
connectOptions and poolOptions. |
static PgPool |
pool(PoolOptions poolOptions)
Like
pool(PgConnectOptions, PoolOptions) with connectOptions build from the environment variables. |
static PgPool |
pool(String connectionUri)
Like
pool(String, PoolOptions) with a default poolOptions. |
static PgPool |
pool(String connectionUri,
PoolOptions poolOptions)
|
static PgPool |
pool(Vertx vertx,
PgConnectOptions connectOptions,
PoolOptions poolOptions)
Like
pool(PgConnectOptions, PoolOptions) with a specific Vertx instance. |
static PgPool |
pool(Vertx vertx,
PoolOptions poolOptions)
Like
pool(Vertx, PgConnectOptions, PoolOptions) with connectOptions build from the environment variables. |
static PgPool |
pool(Vertx vertx,
String connectionUri)
Like
pool(Vertx, String,PoolOptions) with a default poolOptions. |
static PgPool |
pool(Vertx vertx,
String connectionUri,
PoolOptions poolOptions)
|
<R> PgPool |
preparedBatch(String sql,
List<Tuple> batch,
java.util.stream.Collector<Row,?,R> collector,
Handler<AsyncResult<SqlResult<R>>> handler)
Prepare and execute a createBatch.
|
PgPool |
preparedBatch(String sql,
List<Tuple> batch,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a createBatch.
|
<R> PgPool |
preparedQuery(String sql,
java.util.stream.Collector<Row,?,R> collector,
Handler<AsyncResult<SqlResult<R>>> handler)
Prepare and execute a query.
|
PgPool |
preparedQuery(String sql,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a query.
|
<R> PgPool |
preparedQuery(String sql,
Tuple arguments,
java.util.stream.Collector<Row,?,R> collector,
Handler<AsyncResult<SqlResult<R>>> handler)
Prepare and execute a query.
|
PgPool |
preparedQuery(String sql,
Tuple arguments,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a query.
|
<R> PgPool |
query(String sql,
java.util.stream.Collector<Row,?,R> collector,
Handler<AsyncResult<SqlResult<R>>> handler)
Execute a simple query.
|
PgPool |
query(String sql,
Handler<AsyncResult<RowSet<Row>>> handler)
Execute a simple query.
|
begin, close, getConnectionstatic PgPool pool()
pool(PoolOptions) with a default poolOptions.static PgPool pool(PoolOptions poolOptions)
pool(PgConnectOptions, PoolOptions) with connectOptions build from the environment variables.static PgPool pool(String connectionUri)
pool(String, PoolOptions) with a default poolOptions.static PgPool pool(String connectionUri, PoolOptions poolOptions)
static PgPool pool(Vertx vertx, String connectionUri)
pool(Vertx, String,PoolOptions) with a default poolOptions.static PgPool pool(Vertx vertx, PoolOptions poolOptions)
pool(Vertx, PgConnectOptions, PoolOptions) with connectOptions build from the environment variables.static PgPool pool(Vertx vertx, String connectionUri, PoolOptions poolOptions)
static PgPool pool(PgConnectOptions connectOptions, PoolOptions poolOptions)
connectOptions and poolOptions.poolOptions - the options for creating the poolstatic PgPool pool(Vertx vertx, PgConnectOptions connectOptions, PoolOptions poolOptions)
pool(PgConnectOptions, PoolOptions) with a specific Vertx instance.PgPool preparedQuery(String sql, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedQuery in interface PoolpreparedQuery in interface SqlClientsql - the prepared query SQLhandler - the handler notified with the execution result<R> PgPool preparedQuery(String sql, java.util.stream.Collector<Row,?,R> collector, Handler<AsyncResult<SqlResult<R>>> handler)
SqlClientpreparedQuery in interface PoolpreparedQuery in interface SqlClientsql - the prepared query SQLcollector - the collectorhandler - the handler notified with the execution resultPgPool query(String sql, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClient<R> PgPool query(String sql, java.util.stream.Collector<Row,?,R> collector, Handler<AsyncResult<SqlResult<R>>> handler)
SqlClientPgPool preparedQuery(String sql, Tuple arguments, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedQuery in interface PoolpreparedQuery in interface SqlClientsql - the prepared query SQLarguments - the list of argumentshandler - the handler notified with the execution result<R> PgPool preparedQuery(String sql, Tuple arguments, java.util.stream.Collector<Row,?,R> collector, Handler<AsyncResult<SqlResult<R>>> handler)
SqlClientpreparedQuery in interface PoolpreparedQuery in interface SqlClientsql - the prepared query SQLarguments - the list of argumentscollector - the collectorhandler - the handler notified with the execution resultPgPool preparedBatch(String sql, List<Tuple> batch, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedBatch in interface PoolpreparedBatch in interface SqlClientsql - the prepared query SQLbatch - the batch of tupleshandler - the handler notified with the execution result<R> PgPool preparedBatch(String sql, List<Tuple> batch, java.util.stream.Collector<Row,?,R> collector, Handler<AsyncResult<SqlResult<R>>> handler)
SqlClientpreparedBatch in interface PoolpreparedBatch in interface SqlClientsql - the prepared query SQLbatch - the batch of tuplescollector - the collectorhandler - the handler notified with the execution resultCopyright © 2019 Eclipse. All rights reserved.