SqlConnectionImpl

@author <a href="mailto:julien@julienviet.com">Julien Viet</a>

Constructors

this
this(DbConnection conn)
Undocumented in source.

Members

Functions

begin
Transaction begin()
Undocumented in source. Be warned that the author may not have intended to support it.
begin
Transaction begin(bool closeOnEnd)
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
closeHandler
C closeHandler(VoidHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
exceptionHandler
C exceptionHandler(ExceptionHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
handleClosed
void handleClosed()

Handle on connection closed

handleClosing
void handleClosing()

Handle on connection closing

handleException
void handleException(Throwable err)
Undocumented in source. Be warned that the author may not have intended to support it.
handleNotification
void handleNotification(int processId, string channel, string payload)
Undocumented in source.
isConnected
bool isConnected()
Undocumented in source. Be warned that the author may not have intended to support it.
isSSL
bool isSSL()
Undocumented in source. Be warned that the author may not have intended to support it.
prepare
C prepare(string sql, PreparedQueryHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
prepare
PreparedQuery prepare(string sql)
Undocumented in source. Be warned that the author may not have intended to support it.
prepareAsync
Future!PreparedQuery prepareAsync(string sql)
Undocumented in source. Be warned that the author may not have intended to support it.
preparedQuery
C preparedQuery(string sql, RowSetHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
preparedQuery
C preparedQuery(string sql, Tuple arguments, RowSetHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
query
C query(string sql, RowSetHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
schedule
void schedule(ICommand cmd)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From SqlConnection

exceptionHandler
SqlConnection exceptionHandler(ExceptionHandler handler)

Set an handler called with connection errors.

closeHandler
SqlConnection closeHandler(VoidHandler handler)

Set an handler called when the connection is closed.

begin
Transaction begin()

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.

begin
Transaction begin(bool closeOnEnd)
Undocumented in source.
isSSL
bool isSSL()

@return whether the connection uses SSL

isConnected
bool isConnected()
Undocumented in source.
close
void close()

Close the current connection after all the pending commands have been processed.

query
SqlConnection query(string sql, RowSetHandler handler)
Undocumented in source.
query
alias query = SqlClient.query
Undocumented in source.
prepare
SqlConnection prepare(string sql, PreparedQueryHandler handler)

Create a prepared query.

prepareAsync
Future!PreparedQuery prepareAsync(string sql)
Undocumented in source.
prepare
PreparedQuery prepare(string sql)
Undocumented in source.
preparedQuery
SqlConnection preparedQuery(string sql, RowSetHandler handler)
preparedQuery
SqlConnection preparedQuery(string sql, Tuple arguments, RowSetHandler handler)
Undocumented in source.
prepareNamedQueryAsync
Future!NamedQuery prepareNamedQueryAsync(string sql)
prepareNamedQuery
NamedQuery prepareNamedQuery(string sql)
Undocumented in source.
escapeIdentifier
string escapeIdentifier(string identifier)

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.

escapeLiteral
string escapeLiteral(string literal)

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.

From Holder

handleNotification
void handleNotification(int processId, string channel, string payload)
Undocumented in source.
handleClosing
void handleClosing()
Undocumented in source.
handleClosed
void handleClosed()
Undocumented in source.
handleException
void handleException(Throwable err)
Undocumented in source.

Meta