DoRollback
The DoRollback
type describes a function that you can use to rollback the transaction if it did not complete to your satisfaction.
(
getTransactionChanges: GetTransactionChanges,
getTransactionLog: GetTransactionLog,
): boolean
Type | Description | |
---|---|---|
getTransactionChanges | GetTransactionChanges | A function to be called to get the changes made to the |
getTransactionLog | GetTransactionLog | |
returns | boolean |
A DoRollback
can be provided when calling the transaction
method or the finishTransaction
method. See those methods for specific examples.
Since v4.0, this function is provided only with two functions that you can call to get information about the changes made within the transaction (in order to decide whether to do the rollback). See the GetTransactionChanges
and GetTransactionLog
function types for more details.