SQL_ExecuteTransaction Function

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

void SQL_ExecuteTransaction(Handle db, Transaction txn, SQLTxnSuccess onSuccess, SQLTxnFailure onError, any data, DBPriority priority)

Parameters

Handle db

A database handle.

Transaction txn

A transaction handle.

SQLTxnSuccess onSuccess

An optional callback to receive a successful transaction.

SQLTxnFailure onError

An optional callback to receive an error message.

any data

An optional value to pass to callbacks.

DBPriority priority
No description.

Errors

An invalid handle.