Release the lock (if held) and close the underlying SQLite connection. After calling this method, the lock instance is no longer usable.
(self)
| 373 | self.release() |
| 374 | |
| 375 | def close(self) -> None: |
| 376 | """ |
| 377 | Release the lock (if held) and close the underlying SQLite connection. |
| 378 | |
| 379 | After calling this method, the lock instance is no longer usable. |
| 380 | |
| 381 | """ |
| 382 | self.release(force=True) |
| 383 | self._con.close() |
| 384 | with _all_connections_lock: |
| 385 | _all_connections.discard(self._con) |