| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<PgConnection> |
__TYPE_ARG |
| Constructor and Description |
|---|
PgConnection(PgConnection delegate) |
| Modifier and Type | Method and Description |
|---|---|
PgTransaction |
begin()
Begin a transaction and returns a
PgTransaction for controlling and tracking
this transaction. |
PgConnection |
cancelRequest(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Send a request cancellation message to tell the server to cancel processing request in this connection.
|
void |
close()
Close the current connection after all the pending commands have been processed.
|
PgConnection |
closeHandler(io.vertx.core.Handler<Void> handler)
Set an handler called when the connection is closed.
|
boolean |
equals(Object o) |
PgConnection |
exceptionHandler(io.vertx.core.Handler<Throwable> handler)
Set an handler called with connection errors.
|
PgConnection |
getDelegate() |
int |
hashCode() |
boolean |
isSSL() |
static PgConnection |
newInstance(PgConnection arg) |
PgConnection |
notificationHandler(io.vertx.core.Handler<PgNotification> handler)
Set an handler called when the connection receives notification on a channel.
|
PgConnection |
prepare(String sql,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgPreparedQuery>> handler)
Create a prepared query.
|
PgConnection |
preparedBatch(String sql,
List<Tuple> batch,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
Prepare and execute a createBatch.
|
PgConnection |
preparedQuery(String sql,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
Prepare and execute a query.
|
PgConnection |
preparedQuery(String sql,
Tuple arguments,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
Prepare and execute a query.
|
int |
processId() |
PgConnection |
query(String sql,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
Execute a simple query.
|
Single<PgPreparedQuery> |
rxPrepare(String sql)
Create a prepared query.
|
Single<PgRowSet> |
rxPreparedBatch(String sql,
List<Tuple> batch)
Prepare and execute a createBatch.
|
Single<PgRowSet> |
rxPreparedQuery(String sql)
Prepare and execute a query.
|
Single<PgRowSet> |
rxPreparedQuery(String sql,
Tuple arguments)
Prepare and execute a query.
|
Single<PgRowSet> |
rxQuery(String sql)
Execute a simple query.
|
int |
secretKey() |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<PgConnection> __TYPE_ARG
public PgConnection(PgConnection delegate)
public PgConnection getDelegate()
getDelegate in class PgClientpublic PgConnection prepare(String sql, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgPreparedQuery>> handler)
sql - the sqlhandler - the handler notified with the prepared query asynchronouslypublic Single<PgPreparedQuery> rxPrepare(String sql)
sql - the sqlpublic PgConnection exceptionHandler(io.vertx.core.Handler<Throwable> handler)
handler - the handlerpublic PgConnection closeHandler(io.vertx.core.Handler<Void> handler)
handler - the handlerpublic PgTransaction begin()
PgTransaction for controlling and tracking
this transaction.
When the connection is explicitely closed, any inflight transaction is rollbacked.public PgConnection notificationHandler(io.vertx.core.Handler<PgNotification> handler)
PgNotification and has access to the channel name
and the notification payload.handler - the handlerpublic int processId()
public int secretKey()
public PgConnection cancelRequest(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
handler - the handler notified if cancelling request is sentpublic boolean isSSL()
public void close()
public PgConnection preparedQuery(String sql, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
PgClientpreparedQuery in class PgClientsql - the prepared query SQLhandler - the handler notified with the execution resultpublic Single<PgRowSet> rxPreparedQuery(String sql)
PgClientrxPreparedQuery in class PgClientsql - the prepared query SQLpublic PgConnection query(String sql, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
PgClientpublic Single<PgRowSet> rxQuery(String sql)
PgClientpublic PgConnection preparedQuery(String sql, Tuple arguments, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
PgClientpreparedQuery in class PgClientsql - the prepared query SQLarguments - the list of argumentshandler - the handler notified with the execution resultpublic Single<PgRowSet> rxPreparedQuery(String sql, Tuple arguments)
PgClientrxPreparedQuery in class PgClientsql - the prepared query SQLarguments - the list of argumentspublic PgConnection preparedBatch(String sql, List<Tuple> batch, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
PgClientpreparedBatch in class PgClientsql - the prepared query SQLbatch - the batch of tupleshandler - the handler notified with the execution resultpublic Single<PgRowSet> rxPreparedBatch(String sql, List<Tuple> batch)
PgClientrxPreparedBatch in class PgClientsql - the prepared query SQLbatch - the batch of tuplespublic static PgConnection newInstance(PgConnection arg)
Copyright © 2019 Eclipse. All rights reserved.