|
|
Begin a transaction.
- Parameters:
-
| hdb | Database handle |
| flags |
- Isolation mode:
- Lock mode:
|
- Returns:
-
On failure, one of the following error codes is set:
- DB_EINVAL Could be caused by: invalid database handle, invalid flags parameter, invalid lock mode, invalid isolation mode.
- DB_ETXACTIVE A transaction is already running. Call db_commit_tx or db_abort_tx to finish the previous transaction before starting a new transaction. To continue using the previous transaction, ignore this error.
- DB_ENOTX No such transcation found.
- See also:
- db_commit_tx, db_abort_tx, db_flush_tx,
get_db_error, clear_db_error, Error Handling
|