Execute

Last Updated2014-12-15
Created At2014-12-15

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

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

Parameters

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