-
Notifications
You must be signed in to change notification settings - Fork 46
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
Managing Transactions #163
Comments
Hi! You should call box.begin() and box.commit() inside one tarantool event loop iteration. Also you couldn't yield inside transactions. There is only one way to insert/update/... data transactionally from connector - write stored procedure with transaction inside and call it. So, you can read more about transaction management in Tarantool in our documentation https://www.tarantool.io/en/doc/2.5/book/box/atomic/ |
I'll left the issue open as the feature requested blocked on the corresponding tarantool functionality. |
Thank you for the answer.
I was trying to implement such solution and stuck with this #162 Thank you. |
Answered, discussed and resolved :) |
tarantool/tarantool#2016 is implemented now, the issue is not blocked anymore. |
Hi,
Is there a way to manage transactions through the library?
In tarantool, transaction is started with box.begin() and committed with box.commit() functions. But I couldn't find any methods in the library to manage the transactions.
What I would like to do is, begin a transaction, make updates/inserts to a space and then commit the transaction.
I tried adding some functions like below and calling these functions from the library, but it didn't work.
Thank you.
The text was updated successfully, but these errors were encountered: