全部搜尋項
bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: django-pglocks  ]

套件:python3-django-pglocks(1.0.4-1)

python3-django-pglocks 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 django-pglocks

維護小組:

外部的資源:

相似套件:

Django based context manager for PostgreSQL advisory locks (Python3 version)

django-pglocks is a context manager for Django. Advisory locks are application-level locks that are acquired and released purely by the client of the database; PostgreSQL never acquires them on its own. They are very useful as a way of signalling to other sessions that a higher-level resource than a single row is in use, without having to lock an entire table or some other structure.

It's entirely up to the application to correctly acquire the right lock.

Advisory locks are either session locks or transaction locks. A session lock is held until the database session disconnects (or is reset); a transaction lock is held until the transaction terminates.

Currently, the context manager only creates session locks, as the behavior of a lock persisting after the context body has been exited is surprising, and there's no way of releasing a transaction-scope advisory lock except to exit the transaction.

This package contains the Python 3 version of the library.

其他與 python3-django-pglocks 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 python3-django-pglocks

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 5。3 kB27。0 kB [檔案列表]