Send a request cancellation message to tell the server to cancel processing request in this connection.
Note: Use this with caution because the cancellation signal may or may not have any effect.
Set a handler called when the connection receives a notice from the server.
Set a handler called when the connection receives notification on a channel.
The handler is called with the PgNotification and has access to the channel name and the notification payload.Cast a to PgConnection.
This is mostly useful for Vert.x generated APIs like RxJava/Mutiny.
Connects to the database and returns the connection if that succeeds.
The connection interracts directly with the database is not a proxy, so closing the connection will close the underlying connection to the database.Connects to the database and returns the connection if that succeeds.
The connection interracts directly with the database is not a proxy, so closing the connection will close the underlying connection to the database.Like {@link PgConnection#connect} with options build from the environment variables.
Like {@link PgConnection#connect} with options build from the environment variables.
Like {@link PgConnection#connect} with options build from connectionUri
.
Like {@link PgConnection#connect} with options build from connectionUri
.
Generated using TypeDoc
A connection to Postgres.
The connection object supports all the operations defined in the interface, it also provides additional support: