-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Database#{defer,immediate}_constraints on PostgreSQL for changing…
… handling of deferrable constraints in a transaction This allows you to easily check deferrable constraints at a specific point in a transaction, instead of waiting until the end of the transaction. For deferrable constraints that are initially immediate, this allows you to deter the checking of the constraints. I thought about using a single set_constraints method for this, but I think two separate methods results in more readable code.
- Loading branch information
1 parent
96e6d46
commit 5e5f703
Showing
4 changed files
with
122 additions
and
3 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