Rolling back transactions
To rollback a database transaction, your application should use the Connection event's rollbackRequest action. If you want to use rollback actions, you need to turn autocommit off.
1. Create a callback action to handle the results of the rollbackRequest action.
2. Call the rollbackRequest action of the Connection event (for the open database) with the name of the callback action.
The definitions for the two forms of the rollbackRequest action are:
action rollbackRequest(
action<Connection, integer, string, string> callback) returns integer
action rollbackRequestFull(
string token,
dictionary<string, string> extraParams, string token,
action<Connection, integer, string, string> callback) returns integer