SQL_ExecuteTransaction

Last Updated2016-05-21
Created At2014-06-07

Sends a transaction to the database thread. The transaction handle is automatically closed. When the transaction completes, the optional callback is invoked.

native void SQL_ExecuteTransaction(Handle db, Transaction txn, SQLTxnSuccess onSuccess = INVALID_FUNCTION, SQLTxnFailure onError = INVALID_FUNCTION, any data = 0, DBPriority priority = DBPrio_Normal)

Parameters

A database handle.
A transaction handle.
SQLTxnSuccess onSuccess
An optional callback to receive a successful transaction.
An optional callback to receive an error message.
any data
An optional value to pass to callbacks.
DBPriority priority

Return Value

void

Error

An invalid handle.