Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix transaction support and add new Connection#transaction helper.
This adds a new transaction helper that makes the use of transactions a breeze. It uses a mix of transactions and transaction savepoints to enable correctly nested transactions, while giving the user the ability to only roll back the contents of specific transaction blocks. This is a potential breakage for existing users that make use of `Connection#beginTransaction`, `Connection#rollbackTransaction` or `Connection#commitTransaction`, but these never worked correctly in the first place.
- Loading branch information
1 parent
935d698
commit ae7dc1c
Showing
3 changed files
with
338 additions
and
19 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
Oops, something went wrong.