public interface PgConnection
extends io.vertx.sqlclient.SqlConnection
| Modifier and Type | Method and Description |
|---|---|
PgConnection |
cancelRequest(Handler<AsyncResult<Void>> handler)
Send a request cancellation message to tell the server to cancel processing request in this connection.
|
PgConnection |
closeHandler(Handler<Void> handler) |
static void |
connect(Vertx vertx,
Handler<AsyncResult<PgConnection>> handler)
Like
connect(Vertx, PgConnectOptions, Handler) with options build from the environment variables. |
static void |
connect(Vertx vertx,
PgConnectOptions options,
Handler<AsyncResult<PgConnection>> handler)
Connects to the database and returns the connection if that succeeds.
|
static void |
connect(Vertx vertx,
String connectionUri,
Handler<AsyncResult<PgConnection>> handler)
Like
connect(Vertx, PgConnectOptions, Handler) with options build from connectionUri. |
PgConnection |
exceptionHandler(Handler<Throwable> handler) |
PgConnection |
notificationHandler(Handler<PgNotification> handler)
Set an handler called when the connection receives notification on a channel.
|
PgConnection |
prepare(String sql,
Handler<AsyncResult<io.vertx.sqlclient.PreparedQuery>> handler) |
<R> PgConnection |
preparedBatch(String sql,
List<io.vertx.sqlclient.Tuple> batch,
java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector,
Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler) |
PgConnection |
preparedBatch(String sql,
List<io.vertx.sqlclient.Tuple> batch,
Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler) |
<R> PgConnection |
preparedQuery(String sql,
java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector,
Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler) |
PgConnection |
preparedQuery(String sql,
Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler) |
<R> PgConnection |
preparedQuery(String sql,
io.vertx.sqlclient.Tuple arguments,
java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector,
Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler) |
PgConnection |
preparedQuery(String sql,
io.vertx.sqlclient.Tuple arguments,
Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler) |
int |
processId() |
<R> PgConnection |
query(String sql,
java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector,
Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler) |
PgConnection |
query(String sql,
Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler) |
int |
secretKey() |
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 failurestatic void connect(Vertx vertx, Handler<AsyncResult<PgConnection>> handler)
connect(Vertx, PgConnectOptions, Handler) with options build from the environment variables.static void connect(Vertx vertx, String connectionUri, Handler<AsyncResult<PgConnection>> handler)
connect(Vertx, PgConnectOptions, Handler) with options build from connectionUri.PgConnection notificationHandler(Handler<PgNotification> handler)
PgNotification and has access to the channel name
and the notification payload.handler - the handlerPgConnection cancelRequest(Handler<AsyncResult<Void>> handler)
handler - the handler notified if cancelling request is sentint processId()
int secretKey()
PgConnection prepare(String sql, Handler<AsyncResult<io.vertx.sqlclient.PreparedQuery>> handler)
prepare in interface io.vertx.sqlclient.SqlConnectionPgConnection exceptionHandler(Handler<Throwable> handler)
exceptionHandler in interface io.vertx.sqlclient.SqlConnectionPgConnection closeHandler(Handler<Void> handler)
closeHandler in interface io.vertx.sqlclient.SqlConnectionPgConnection preparedQuery(String sql, Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler)
preparedQuery in interface io.vertx.sqlclient.SqlClientpreparedQuery in interface io.vertx.sqlclient.SqlConnection<R> PgConnection preparedQuery(String sql, java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector, Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler)
preparedQuery in interface io.vertx.sqlclient.SqlClientpreparedQuery in interface io.vertx.sqlclient.SqlConnectionPgConnection query(String sql, Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler)
query in interface io.vertx.sqlclient.SqlClientquery in interface io.vertx.sqlclient.SqlConnection<R> PgConnection query(String sql, java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector, Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler)
query in interface io.vertx.sqlclient.SqlClientquery in interface io.vertx.sqlclient.SqlConnectionPgConnection preparedQuery(String sql, io.vertx.sqlclient.Tuple arguments, Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler)
preparedQuery in interface io.vertx.sqlclient.SqlClientpreparedQuery in interface io.vertx.sqlclient.SqlConnection<R> PgConnection preparedQuery(String sql, io.vertx.sqlclient.Tuple arguments, java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector, Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler)
preparedQuery in interface io.vertx.sqlclient.SqlClientpreparedQuery in interface io.vertx.sqlclient.SqlConnectionPgConnection preparedBatch(String sql, List<io.vertx.sqlclient.Tuple> batch, Handler<AsyncResult<io.vertx.sqlclient.RowSet>> handler)
preparedBatch in interface io.vertx.sqlclient.SqlClientpreparedBatch in interface io.vertx.sqlclient.SqlConnection<R> PgConnection preparedBatch(String sql, List<io.vertx.sqlclient.Tuple> batch, java.util.stream.Collector<io.vertx.sqlclient.Row,?,R> collector, Handler<AsyncResult<io.vertx.sqlclient.SqlResult<R>>> handler)
preparedBatch in interface io.vertx.sqlclient.SqlClientpreparedBatch in interface io.vertx.sqlclient.SqlConnectionCopyright © 2019 Eclipse. All rights reserved.