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.
Close the current connection after all the pending commands have been processed.
Set an handler called when the connection is closed.
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.
Set an handler called with connection errors.
@return whether the connection uses SSL
Create a prepared query.
Execute a simple query.
Prepare and execute a query.
Prepare and execute a query.
Prepare and execute a createBatch.
Close the client and release the associated resources.
A connection to database server.
@author <a href="mailto:julien@julienviet.com">Julien Viet</a> @author <a href="mailto:emad.albloushi@gmail.com">Emad Alblueshi</a>