public interface PgConnection extends 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)
Set an handler called when the connection is closed. 
 | 
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)
Set an handler called with connection errors. 
 | 
PgConnection | 
notificationHandler(Handler<PgNotification> handler)
Set an handler called when the connection receives notification on a channel. 
 | 
PgConnection | 
prepare(String sql,
       Handler<AsyncResult<PreparedStatement>> handler)
Create a prepared query. 
 | 
int | 
processId()  | 
int | 
secretKey()  | 
begin, close, databaseMetadata, isSSLpreparedQuery, querystatic 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<PreparedStatement>> handler)
prepare in interface SqlConnectionsql - the sqlhandler - the handler notified with the prepared query asynchronouslyPgConnection exceptionHandler(Handler<Throwable> handler)
exceptionHandler in interface SqlConnectionhandler - the handlerPgConnection closeHandler(Handler<Void> handler)
SqlConnectioncloseHandler in interface SqlConnectionhandler - the handlerCopyright © 2020 Eclipse. All rights reserved.