Function tarantool::transaction::begin

source ·
pub fn begin() -> Result<(), TarantoolError>
Expand description

Begin a transaction in the current fiber.

One fiber can have at most one active transaction.

Returns an error if there’s already an active transcation. May return an error in other cases.

NOTE: it is the caller’s responsibility to call commit or rollback. Consider using transaction instead.