Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ntucker/django-transaction-utils
Utilities to make handling database transactions manually much easier.
https://github.com/ntucker/django-transaction-utils
Last synced: 22 days ago
JSON representation
Utilities to make handling database transactions manually much easier.
- Host: GitHub
- URL: https://github.com/ntucker/django-transaction-utils
- Owner: ntucker
- License: other
- Created: 2013-05-08T23:32:32.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-12T04:19:55.000Z (about 9 years ago)
- Last Synced: 2024-05-02T00:32:38.860Z (6 months ago)
- Language: Python
- Size: 137 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
django-transaction-utils
========================Utilities to make handling database transactions manually much easier.
About
-----This code provides a decorator / context manager for transaction management in
Django on PostgreSQL. It is intended as a replacement for the existing Django
commit_on_success() function, and provides some nice features:
* Nested transactions: The top-level transaction will be a BEGIN/COMMIT/ROLLBACK
block; inner "transactions" are implemented as savepoints.
* Commits even if is_dirty is False, eliminating the mistake of forgetting to set
the dirty flag when doing database-modifying raw SQL.
* Better interaction with pgPool II, if you're using it.
* A workaround for a subtle but nasty bug in Django's transaction management.
For full details, check the README.md file.