Transaction

A transaction that allows to control the transaction and receive events.

Members

Functions

abortHandler
Transaction abortHandler(AsyncVoidHandler handler)

Set an handler to be called when the transaction is aborted.

close
void close()

Rollback the transaction and release the associated resources.

commit
void commit()

Commit the current transaction.

commit
void commit(AsyncVoidHandler handler)

Like {@link #commit} with an handler to be notified when the transaction commit has completed

prepare
Transaction prepare(string sql, PreparedQueryHandler handler)

Create a prepared query.

query
Transaction query(string sql, RowSetHandler handler)
Undocumented in source.
rollback
void rollback()

Rollback the current transaction.

rollback
void rollback(AsyncVoidHandler handler)

Like {@link #rollback} with an handler to be notified when the transaction rollback has completed

status
int status()
Undocumented in source.

Inherited Members

From SqlClient

query
SqlClient query(string sql, RowSetHandler handler)

Execute a simple query.

queryAsync
Future!RowSet queryAsync(string sql)
Undocumented in source.
query
RowSet query(string sql)
Undocumented in source.
preparedQuery
SqlClient preparedQuery(string sql, RowSetHandler handler)

Prepare and execute a query.

preparedQuery
SqlClient preparedQuery(string sql, Tuple arguments, RowSetHandler handler)

Prepare and execute a query.

preparedBatch
SqlClient preparedBatch(string sql, List!(Tuple) batch, RowSetHandler handler)

Prepare and execute a createBatch.

close
void close()

Close the client and release the associated resources.

Meta