| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<PgPool> |
__TYPE_ARG |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
PgPool |
getDelegate() |
int |
hashCode() |
static PgPool |
newInstance(PgPool arg) |
static PgPool |
pool()
Like
pool() 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() with connectOptions build from the environment variables. |
static PgPool |
pool(String connectionUri)
Like
pool() with a default poolOptions. |
static PgPool |
pool(String connectionUri,
PoolOptions poolOptions)
|
static PgPool |
pool(Vertx vertx,
PgConnectOptions connectOptions,
PoolOptions poolOptions)
Like
pool() with a specific instance. |
static PgPool |
pool(Vertx vertx,
PoolOptions poolOptions)
Like
pool() with connectOptions build from the environment variables. |
static PgPool |
pool(Vertx vertx,
String connectionUri)
Like
pool() with a default poolOptions. |
static PgPool |
pool(Vertx vertx,
String connectionUri,
PoolOptions poolOptions)
|
PgPool |
preparedBatch(String sql,
List<Tuple> batch,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a createBatch.
|
PgPool |
preparedQuery(String sql,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a query.
|
PgPool |
preparedQuery(String sql,
Tuple arguments,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a query.
|
PgPool |
query(String sql,
Handler<AsyncResult<RowSet<Row>>> handler)
Execute a simple query.
|
Single<RowSet<Row>> |
rxPreparedBatch(String sql,
List<Tuple> batch)
Prepare and execute a createBatch.
|
Single<RowSet<Row>> |
rxPreparedQuery(String sql)
Prepare and execute a query.
|
Single<RowSet<Row>> |
rxPreparedQuery(String sql,
Tuple arguments)
Prepare and execute a query.
|
Single<RowSet<Row>> |
rxQuery(String sql)
Execute a simple query.
|
String |
toString() |
begin, close, getConnection, newInstance, rxBegin, rxGetConnectionnewInstancepublic static final io.vertx.lang.rx.TypeArg<PgPool> __TYPE_ARG
public PgPool(PgPool delegate)
public PgPool getDelegate()
getDelegate in class Poolpublic static PgPool pool(PoolOptions poolOptions)
pool() with connectOptions build from the environment variables.poolOptions - public static PgPool pool(String connectionUri)
pool() with a default poolOptions.connectionUri - public static PgPool pool(String connectionUri, PoolOptions poolOptions)
connectionUri - poolOptions - public static PgPool pool(Vertx vertx, String connectionUri)
pool() with a default poolOptions.vertx - connectionUri - public static PgPool pool(Vertx vertx, PoolOptions poolOptions)
pool() with connectOptions build from the environment variables.vertx - poolOptions - public static PgPool pool(Vertx vertx, String connectionUri, PoolOptions poolOptions)
vertx - connectionUri - poolOptions - public static PgPool pool(PgConnectOptions connectOptions, PoolOptions poolOptions)
connectOptions and poolOptions.connectOptions - poolOptions - the options for creating the poolpublic static PgPool pool(Vertx vertx, PgConnectOptions connectOptions, PoolOptions poolOptions)
pool() with a specific instance.vertx - connectOptions - poolOptions - public PgPool preparedQuery(String sql, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedQuery in class Poolsql - the prepared query SQLhandler - the handler notified with the execution resultpublic Single<RowSet<Row>> rxPreparedQuery(String sql)
SqlClientrxPreparedQuery in class Poolsql - the prepared query SQLpublic PgPool query(String sql, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpublic Single<RowSet<Row>> rxQuery(String sql)
SqlClientpublic PgPool preparedQuery(String sql, Tuple arguments, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedQuery in class Poolsql - the prepared query SQLarguments - the list of argumentshandler - the handler notified with the execution resultpublic Single<RowSet<Row>> rxPreparedQuery(String sql, Tuple arguments)
SqlClientrxPreparedQuery in class Poolsql - the prepared query SQLarguments - the list of argumentspublic PgPool preparedBatch(String sql, List<Tuple> batch, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedBatch in class Poolsql - the prepared query SQLbatch - the batch of tupleshandler - the handler notified with the execution resultpublic Single<RowSet<Row>> rxPreparedBatch(String sql, List<Tuple> batch)
SqlClientrxPreparedBatch in class Poolsql - the prepared query SQLbatch - the batch of tuplesCopyright © 2019 Eclipse. All rights reserved.