public class PgConnection extends SqlConnection
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<PgConnection> |
__TYPE_ARG |
Constructor and Description |
---|
PgConnection(PgConnection delegate) |
begin, close, isSSL, newInstance
newInstance
public static final TypeArg<PgConnection> __TYPE_ARG
public PgConnection(PgConnection delegate)
public String toString()
toString
in class SqlConnection
public boolean equals(Object o)
equals
in class SqlConnection
public int hashCode()
hashCode
in class SqlConnection
public PgConnection getDelegate()
getDelegate
in class SqlConnection
public static void connect(Vertx vertx, PgConnectOptions options, Handler<AsyncResult<PgConnection>> handler)
vertx
- the vertx instanceoptions
- the connect optionshandler
- the handler called with the connection or the failurepublic static rx.Single<PgConnection> rxConnect(Vertx vertx, PgConnectOptions options)
vertx
- the vertx instanceoptions
- the connect optionspublic static void connect(Vertx vertx, Handler<AsyncResult<PgConnection>> handler)
connect(io.vertx.rxjava.core.Vertx, io.vertx.pgclient.PgConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.pgclient.PgConnection>>)
with options build from the environment variables.vertx
- handler
- public static rx.Single<PgConnection> rxConnect(Vertx vertx)
connect(io.vertx.rxjava.core.Vertx, io.vertx.pgclient.PgConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.pgclient.PgConnection>>)
with options build from the environment variables.vertx
- public static void connect(Vertx vertx, String connectionUri, Handler<AsyncResult<PgConnection>> handler)
connect(io.vertx.rxjava.core.Vertx, io.vertx.pgclient.PgConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.pgclient.PgConnection>>)
with options build from connectionUri
.vertx
- connectionUri
- handler
- public static rx.Single<PgConnection> rxConnect(Vertx vertx, String connectionUri)
connect(io.vertx.rxjava.core.Vertx, io.vertx.pgclient.PgConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.pgclient.PgConnection>>)
with options build from connectionUri
.vertx
- connectionUri
- public PgConnection notificationHandler(Handler<PgNotification> handler)
PgNotification
and has access to the channel name
and the notification payload.handler
- the handlerpublic PgConnection cancelRequest(Handler<AsyncResult<Void>> handler)
handler
- the handler notified if cancelling request is sentpublic int processId()
public int secretKey()
public PgConnection prepare(String sql, Handler<AsyncResult<PreparedQuery>> handler)
SqlConnection
prepare
in class SqlConnection
sql
- the sqlhandler
- the handler notified with the prepared query asynchronouslypublic rx.Single<PreparedQuery> rxPrepare(String sql)
SqlConnection
rxPrepare
in class SqlConnection
sql
- the sqlpublic PgConnection exceptionHandler(Handler<Throwable> handler)
SqlConnection
exceptionHandler
in class SqlConnection
handler
- the handlerpublic PgConnection closeHandler(Handler<Void> handler)
SqlConnection
closeHandler
in class SqlConnection
handler
- the handlerpublic PgConnection preparedQuery(String sql, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClient
preparedQuery
in class SqlConnection
sql
- the prepared query SQLhandler
- the handler notified with the execution resultpublic rx.Single<RowSet<Row>> rxPreparedQuery(String sql)
SqlClient
rxPreparedQuery
in class SqlConnection
sql
- the prepared query SQLpublic PgConnection query(String sql, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClient
query
in class SqlConnection
sql
- the query SQLhandler
- the handler notified with the execution resultpublic rx.Single<RowSet<Row>> rxQuery(String sql)
SqlClient
rxQuery
in class SqlConnection
sql
- the query SQLpublic PgConnection preparedQuery(String sql, Tuple arguments, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClient
preparedQuery
in class SqlConnection
sql
- the prepared query SQLarguments
- the list of argumentshandler
- the handler notified with the execution resultpublic rx.Single<RowSet<Row>> rxPreparedQuery(String sql, Tuple arguments)
SqlClient
rxPreparedQuery
in class SqlConnection
sql
- the prepared query SQLarguments
- the list of argumentspublic PgConnection preparedBatch(String sql, List<Tuple> batch, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClient
preparedBatch
in class SqlConnection
sql
- the prepared query SQLbatch
- the batch of tupleshandler
- the handler notified with the execution resultpublic rx.Single<RowSet<Row>> rxPreparedBatch(String sql, List<Tuple> batch)
SqlClient
rxPreparedBatch
in class SqlConnection
sql
- the prepared query SQLbatch
- the batch of tuplespublic static PgConnection newInstance(PgConnection arg)
Copyright © 2019 Eclipse. All rights reserved.