Send a request cancellation message to tell the server to cancel processing request in this connection. <br>Note: Use this with caution because the cancellation signal may or may not have any effect.
Set an handler called when the connection receives notification on a channel. <p/> The handler is called with the {@link PgNotification} and has access to the channel name and the notification payload.
@return The process ID of the target backend
@return The secret key for the target backend
Set an handler called with connection errors.
Set an handler called when the connection is closed.
Begin a transaction and returns a {@link Transaction} for controlling and tracking this transaction. <p/> When the connection is explicitely closed, any inflight transaction is rollbacked.
@return whether the connection uses SSL
Close the current connection after all the pending commands have been processed.
Create a prepared query.
Return the given string suitably quoted to be used as an identifier in an SQL statement string. Quotes are added only if necessary (i.e., if the string contains non-identifier characters or would be case-folded). Embedded quotes are properly doubled.
Return the given string suitably quoted to be used as a string literal in an SQL statement string. Embedded single-quotes and backslashes are properly doubled. Note that quote_literal returns null on null input.
A connection to Postgres.
@author <a href="mailto:julien@julienviet.com">Julien Viet</a> @author <a href="mailto:emad.albloushi@gmail.com">Emad Alblueshi</a>