_lock module#

class cache_manager._lock.Lock(con)[source]#

Context manager that keeps the SQLite database exclusively locked. This avoids concurrency when performing changes within a database connection.

Args:
con:

The current instance of sqlite3.Connection to be locked.

Attrs:
con:

Current connection to SQL database.