Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client): Implement isolation levels for bathc transactions
Engines part: prisma/prisma-engines#3199 Batch `$transaction` call will now receive optional options objects with `isolationLevel` property, allowing to pick any level, supporting by current transaction. Internally, refactors a bunch of things about the way transaction info is stored in `PrismaPromise`, `Request` and `InternalRequest` types. - All transaction-related properties are now grouped under `transaction` key. Distiction between iTx and batch transaction is done explcitly via discriminated union type. - `runInTransaction` property is removed. Empty `transaction` field now means that request is not running in transaction. For testing we are checking that engine correctly generates corresponding SQL. Properly testing different isolation level effects would be very difficult, especially in case of batch transactions, where we can not execute any code between the queries. Ref #9678
- Loading branch information
Showing
16 changed files
with
373 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.