Send a CHANGE_USER command to change the user of the current connection, this operation will also reset connection state.
Send a DEBUG command to dump debug information to the server's stdout.
Send a STATISTICS command to get a human readable string of the server internal status.
Send a PING command to check if the server is alive.
Send a RESET_CONNECTION command to reset the session state.
Send a SET_OPTION command to set options for the current connection.
Send a INIT_DB command to change the default schema of the connection.
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 MySQL server.