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

Transactions #3

Open
dbanty opened this issue Apr 5, 2023 · 0 comments
Open

Transactions #3

dbanty opened this issue Apr 5, 2023 · 0 comments

Comments

@dbanty
Copy link

dbanty commented Apr 5, 2023

This is a very cool project; I definitely would have used it in place of custom solutions in previous projects. However, a requirement for those projects was to use WATCH with MULTI to create transactions to avoid race conditions. Is that something that is or will be supported as part of the ORM? I could imagine an API where you do something like Model::get_for_update, which starts watching all of the required fields and uses MULTI when calling .save()

To be clear, I don't have an immediate need for this now, it's just something that was a pain to implement by hand in the past 😁

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

1 participant