-
Notifications
You must be signed in to change notification settings - Fork 43
add interactive transaction support in net.box #2311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is described in the Streams chapter. We might need to add links and short descriptions on the net.box page. |
12 tasks
Related issue: #2308 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Product: Tarantool
Since: 2.10.0-beta1
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/net_box/
SME: @ alyapunov
Details
Implement
begin
,commit
androllback
methods for stream objectin
net.box
, which allows to begin, commit and rollback transactionaccordingly. Now there are multiple ways to begin, commit and rollback
transaction from
net.box
: using appropriate stream methods, using 'callor 'eval' methods or using
executemethod with sql transaction syntax. User can mix these methods, for example, start transaction using
stream:begin(), and commit transaction using
stream:call('box.commit')`or stream:execute('COMMIT').
Simple example of using interactive transactions via iproto from net.box:
Different examples of using streams you can find in
gh-5860-implement-streams-in-iproto.test.lua (https://github.com/tarantool/tarantool/blob/master/test/box/net.box_iproto_transactions_over_streams.test.lua)
Requested by @EvgenyMekhanik in tarantool/tarantool@f9ca802.
Related to #2308 and #2310
The text was updated successfully, but these errors were encountered: