public class PgPool extends Pool
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<PgPool> |
__TYPE_ARG |
Constructor and Description |
---|
PgPool(io.vertx.pgclient.PgPool delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
io.vertx.pgclient.PgPool |
getDelegate() |
int |
hashCode() |
static PgPool |
newInstance(io.vertx.pgclient.PgPool arg) |
static PgPool |
pool()
Like
pool() with a default poolOptions . |
static PgPool |
pool(io.vertx.pgclient.PgConnectOptions connectOptions,
io.vertx.sqlclient.PoolOptions poolOptions)
Create a connection pool to the database configured with the given
connectOptions and poolOptions . |
static PgPool |
pool(io.vertx.sqlclient.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,
io.vertx.sqlclient.PoolOptions poolOptions)
|
static PgPool |
pool(Vertx vertx,
io.vertx.pgclient.PgConnectOptions connectOptions,
io.vertx.sqlclient.PoolOptions poolOptions)
Like
pool() with a specific instance. |
static PgPool |
pool(Vertx vertx,
io.vertx.sqlclient.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,
io.vertx.sqlclient.PoolOptions poolOptions)
|
PgPool |
preparedBatch(String sql,
List<Tuple> batch,
io.vertx.core.Handler<io.vertx.core.AsyncResult<RowSet>> handler)
Prepare and execute a createBatch.
|
PgPool |
preparedQuery(String sql,
io.vertx.core.Handler<io.vertx.core.AsyncResult<RowSet>> handler)
Prepare and execute a query.
|
PgPool |
preparedQuery(String sql,
Tuple arguments,
io.vertx.core.Handler<io.vertx.core.AsyncResult<RowSet>> handler)
Prepare and execute a query.
|
PgPool |
query(String sql,
io.vertx.core.Handler<io.vertx.core.AsyncResult<RowSet>> handler)
Execute a simple query.
|
rx.Single<RowSet> |
rxPreparedBatch(String sql,
List<Tuple> batch)
Prepare and execute a createBatch.
|
rx.Single<RowSet> |
rxPreparedQuery(String sql)
Prepare and execute a query.
|
rx.Single<RowSet> |
rxPreparedQuery(String sql,
Tuple arguments)
Prepare and execute a query.
|
rx.Single<RowSet> |
rxQuery(String sql)
Execute a simple query.
|
String |
toString() |
begin, close, getConnection, newInstance, rxBegin, rxGetConnection
newInstance
public io.vertx.pgclient.PgPool getDelegate()
getDelegate
in class Pool
public static PgPool pool(io.vertx.sqlclient.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, io.vertx.sqlclient.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, io.vertx.sqlclient.PoolOptions poolOptions)
pool()
with connectOptions
build from the environment variables.vertx
- poolOptions
- public static PgPool pool(Vertx vertx, String connectionUri, io.vertx.sqlclient.PoolOptions poolOptions)
vertx
- connectionUri
- poolOptions
- public static PgPool pool(io.vertx.pgclient.PgConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions)
connectOptions
and poolOptions
.connectOptions
- poolOptions
- the options for creating the poolpublic static PgPool pool(Vertx vertx, io.vertx.pgclient.PgConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions)
pool()
with a specific instance.vertx
- connectOptions
- poolOptions
- public PgPool preparedQuery(String sql, io.vertx.core.Handler<io.vertx.core.AsyncResult<RowSet>> handler)
SqlClient
preparedQuery
in class Pool
sql
- the prepared query SQLhandler
- the handler notified with the execution resultpublic rx.Single<RowSet> rxPreparedQuery(String sql)
SqlClient
rxPreparedQuery
in class Pool
sql
- the prepared query SQLpublic PgPool query(String sql, io.vertx.core.Handler<io.vertx.core.AsyncResult<RowSet>> handler)
SqlClient
public rx.Single<RowSet> rxQuery(String sql)
SqlClient
public PgPool preparedQuery(String sql, Tuple arguments, io.vertx.core.Handler<io.vertx.core.AsyncResult<RowSet>> handler)
SqlClient
preparedQuery
in class Pool
sql
- the prepared query SQLarguments
- the list of argumentshandler
- the handler notified with the execution resultpublic rx.Single<RowSet> rxPreparedQuery(String sql, Tuple arguments)
SqlClient
rxPreparedQuery
in class Pool
sql
- the prepared query SQLarguments
- the list of argumentspublic PgPool preparedBatch(String sql, List<Tuple> batch, io.vertx.core.Handler<io.vertx.core.AsyncResult<RowSet>> handler)
SqlClient
preparedBatch
in class Pool
sql
- the prepared query SQLbatch
- the batch of tupleshandler
- the handler notified with the execution resultpublic rx.Single<RowSet> rxPreparedBatch(String sql, List<Tuple> batch)
SqlClient
rxPreparedBatch
in class Pool
sql
- the prepared query SQLbatch
- the batch of tuplespublic static PgPool newInstance(io.vertx.pgclient.PgPool arg)
Copyright © 2019 Eclipse. All rights reserved.