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

High level transaction support? #96

Open
pardeike opened this issue May 13, 2023 · 2 comments
Open

High level transaction support? #96

pardeike opened this issue May 13, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@pardeike
Copy link

My government organisation is switching to Swift backend micro services. We rather have as few dependencies as possible and I am really missing a way to execute multiple statements in a transaction. I guess it's kind of possible to hack that in but with many in-house developers it should rather be obvious (and documented) to do so. I am either missing that it's there or really would like to have this implemented in an intuitive to use feature.

Describe the solution you'd like
Ultimately a way to execute statements inside a closure that is provided by a transaction api is what I am wishing for.

Add rollback on throwing and it becomes pretty simply to use. Of course this is just a high level wish and probably requires more - for example a way to turn off automatic transactions in a nice way without using raw sql.

/pardeike

@pardeike pardeike added the enhancement New feature or request label May 13, 2023
@0xTim
Copy link
Member

0xTim commented Jul 5, 2023

cc @gwynne

@gwynne
Copy link
Member

gwynne commented Jul 5, 2023

This is already supported in the overhaul of MySQLNIO I'm currently completing, as part of a sweeping rewrite to add numerous missing features and fix several major shortcomings of the existing implementation. An initial release of the new code is expected within the next week or two.

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

No branches or pull requests

3 participants