This commences a transaction on the database. The transaction methods are useful if you want to maintain control over the two phase commit process in the database. The alternative database.execute() method can accomplish the same but it will automatically commit any changes as the SQL is executed. This transaction based technique provides a finer degree of control and allows for rollbacks.
Refer to the Status Code topic for a list of the status code values that are returned by this method.
Prev | Home | Next |
database object | Up | database.commitTransaction() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |