Tarantool CE/EE Documentation portal logo
Support

Functions for transaction management

For general information and examples, see section Transactions.

Observe the following rules when working with transactions:

Below is a list of all functions for transaction management.

Name

Use

box.begin()

Begin the transaction

box.commit()

End the transaction and save all changes

box.rollback()

End the transaction and discard all changes

box.savepoint()

Get a savepoint descriptor

box.rollback_to_savepoint()

Do not end the transaction and discard all changes made after a savepoint

box.atomic()

Execute a function, treating it as a transaction

box.on_commit()

Define a trigger that will be activated by box.commit

box.on_rollback()

Define a trigger that will be activated by box.rollback

box.is_in_txn()

State whether a transaction is in progress