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

transaction_guard: Ability to specify transaction type #1305

Closed
trevornagy opened this issue Jun 2, 2024 · 3 comments · Fixed by #1308
Closed

transaction_guard: Ability to specify transaction type #1305

trevornagy opened this issue Jun 2, 2024 · 3 comments · Fixed by #1308

Comments

@trevornagy
Copy link

By default the transaction_guard API calls: begin_transaction.

Would it be possible to add to the transaction_guard API a way to specify the type of transaction? For example, what if I want to use transaction_guard + begin_immediate_transaction / transaction_guard + begin_exclusive_transaction?

Is this possible?

Thanks!

@fnc12
Copy link
Owner

fnc12 commented Jun 2, 2024

It is not possible but we can think about it. Either to add more functions like immediate_transaction_guard or adding enum argument to transaction_guard

@fnc12
Copy link
Owner

fnc12 commented Jun 9, 2024

PR is here #1308

@fnc12
Copy link
Owner

fnc12 commented Jun 10, 2024

@trevornagy please check dev branch for new API deferred_transaction_guard, immediate_transaction_guard and exclusive_transaction_guard

@trueqbit trueqbit linked a pull request Jun 10, 2024 that will close this issue
@fnc12 fnc12 closed this as completed Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants