Managing transactions

The UltraLite C++ API does not support AutoCommit mode. Transactions are started implicitly by the first statement to modify the database, and must be explicitly committed or rolled back.

 To commit a transaction
  • Execute a conn->Commit statement, where conn is a valid ULConnection pointer.

    See Commit method.

 To roll back a transaction
  • Execute a conn->Rollback statement, where conn is a valid ULConnection pointer.

    See Rollback method.

For more information about transaction management in UltraLite, see UltraLite transaction processing.