| 1 |
Source: django-pglocks |
| 2 |
Maintainer: Debian Python Team <[email protected]> |
| 3 |
Uploaders: |
| 4 |
Carsten Schoenert <[email protected]>, |
| 5 |
Section: python |
| 6 |
Priority: optional |
| 7 |
Build-Depends: |
| 8 |
debhelper-compat (= 13), |
| 9 |
python3-all, |
| 10 |
Build-Depends-Indep: |
| 11 |
dh-sequence-python3, |
| 12 |
python3-setuptools, |
| 13 |
Rules-Requires-Root: no |
| 14 |
Standards-Version: 4.7.0 |
| 15 |
Vcs-Browser: https://salsa.debian.org/python-team/packages/django-pglocks |
| 16 |
Vcs-Git: https://salsa.debian.org/python-team/packages/django-pglocks.git |
| 17 |
Homepage: https://github.com/Xof/django-pglocks |
| 18 |
|
| 19 |
Package: python3-django-pglocks |
| 20 |
Architecture: all |
| 21 |
Depends: |
| 22 |
python3-django, |
| 23 |
${misc:Depends}, |
| 24 |
${python3:Depends}, |
| 25 |
Description: Django based context manager for PostgreSQL advisory locks (Python3 version) |
| 26 |
django-pglocks is a context manager for Django. |
| 27 |
Advisory locks are application-level locks that are acquired and released |
| 28 |
purely by the client of the database; PostgreSQL never acquires them on its |
| 29 |
own. They are very useful as a way of signalling to other sessions that a |
| 30 |
higher-level resource than a single row is in use, without having to lock an |
| 31 |
entire table or some other structure. |
| 32 |
. |
| 33 |
It's entirely up to the application to correctly acquire the right lock. |
| 34 |
. |
| 35 |
Advisory locks are either session locks or transaction locks. A session lock |
| 36 |
is held until the database session disconnects (or is reset); a transaction |
| 37 |
lock is held until the transaction terminates. |
| 38 |
. |
| 39 |
Currently, the context manager only creates session locks, as the behavior of |
| 40 |
a lock persisting after the context body has been exited is surprising, and |
| 41 |
there's no way of releasing a transaction-scope advisory lock except to exit |
| 42 |
the transaction. |
| 43 |
. |
| 44 |
This package contains the Python 3 version of the library. |