box: introduce options in box.atomic
If the first argument of box.atomic is a non-callable table then consider it as options table for box.begin{}. For test and debug purposes introduce internal getter of current transaction isolation level as box.internal.txn_isolation(). Closes #7202 @TarantoolBot document Title: Options in box.atomic Now it's allowed to pass transaction options in the first argument of box.atomic(..) call. The options must be a table, exactly as in box.begin(..). If options are passed as the first arguments, the second and the rest arguments are expected to be a functions and its arguments, like in usual box.atomic.
Showing
- changelogs/unreleased/gh-7202-options-in-atomic.md 3 additions, 0 deletionschangelogs/unreleased/gh-7202-options-in-atomic.md
- extra/exports 1 addition, 0 deletionsextra/exports
- src/box/lua/schema.lua 25 additions, 3 deletionssrc/box/lua/schema.lua
- src/box/txn.c 10 additions, 0 deletionssrc/box/txn.c
- src/box/txn.h 8 additions, 0 deletionssrc/box/txn.h
- test/box-luatest/gh_7202_options_in_atomic_test.lua 77 additions, 0 deletionstest/box-luatest/gh_7202_options_in_atomic_test.lua
Loading
Please register or sign in to comment