-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add transaction isolation support #4185
Conversation
@clemens-smartparking Unfortunately, that is not that straightforward. First of all, Objection TS types need to be adjusted, as seen in Vincit/objection.js#1992. Second, looks like Objection is importing some of knex internal files directly, so that will need to be adjusted as well. I'll spend some time this week to fix incompatibilities on Objection side, hopefully some kind of |
Attempt to solve #581
Probably needs some extra tests, not sure where the best place to put them is.
Also probably needs to implement for all drivers rather than just half of them
Syntax is
knex.transaction(...).setIsolationLevel('string')