box.begin() | Tarantool

box.begin()

box.begin([txn_isolation])

Begin the transaction. Disable implicit yields until the transaction ends. Signal that writes to the write-ahead log will be deferred until the transaction ends. In effect the fiber which executes box.begin() is starting an “active multi-request transaction”, blocking all other fibers.

Parameters:

Possible errors:

  • error if this operation is not permitted because there is already an active transaction.
  • error if for some reason memory cannot be allocated.
Found what you were looking for?
Feedback