Skip to content
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 #151

Open
enescaglar opened this issue Aug 3, 2020 · 1 comment
Open

Managing Transactions #151

enescaglar opened this issue Aug 3, 2020 · 1 comment

Comments

@enescaglar
Copy link

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.

function begin_transaction(dummy)
box.begin()
end

function commit_transaction(dummy)
box.commit()
end

Thank you.

@Totktonada
Copy link

@olegrok gives the answer, which is relevant for all tarantool connectors / clients. In short: the connector feature is blocked on tarantool/tarantool#2016. One may use stored procedures as partial workaround (it resolves some cases, but does not help with other ones).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants