relstorage.adapters.locker – Locker implementations#

Locker implementations.

class AbstractLocker(options, driver, batcher_factory)[source]#

Bases: DatabaseHelpersMixin, ABC

on_store_opened(cursor, restart=False)[source]#

A callback that must be called when a store connection is opened or restarted.

This implementation calls _on_store_opened_set_row_lock_timeout() when the store connection is initially opened.

supports_row_lock_nowait = True#

Set this to a false value if you don’t support NOWAIT and we’ll instead set the lock timeout to a low value.