Database commitTransaction()
syntax: |
database.commitTransaction() |
return: |
number - 0 if the call was successful; otherwise, a nonzero status code based on the error message produced by the database. If the method returns a nonzero status code, use the majorErrorCode and majorErrorMessage methods to interpret the meaning of the error.
|
description: |
This method commits all of the actions performed since the last call to beginTransaction. If there is no current transaction (for instance, the application has not called beginTransaction), calls to commitTransaction are ignored.
|
see: |
#link <sedbc>, Database beginTransaction(), Database rollbackTransaction()
|
example: |
var err = db.commitTransaction(); |