Database beginTransaction()
syntax: |
database.beginTransaction() |
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: |
After calling beginTransaction, all subsequent actions that modify the database are grouped within this transaction, known as the current transaction. Nested transactions are not supported. If beginTransaction is called when a transaction is already open, an error message will be returned.
|
see: |
#link <sedbc>, Database commitTransaction(), Database rollbackTransaction()
|
example: |
var err = db.beginTransaction(); |