(self, db: sqlite3.Connection)
| 1328 | return self._ceph_exit(120, hard=True) |
| 1329 | |
| 1330 | def configure_db(self, db: sqlite3.Connection) -> None: |
| 1331 | db.execute('PRAGMA FOREIGN_KEYS = 1') |
| 1332 | db.execute('PRAGMA JOURNAL_MODE = PERSIST') |
| 1333 | db.execute('PRAGMA PAGE_SIZE = 65536') |
| 1334 | db.execute('PRAGMA CACHE_SIZE = 64') |
| 1335 | db.execute('PRAGMA TEMP_STORE = memory') |
| 1336 | db.row_factory = sqlite3.Row |
| 1337 | self.load_schema(db) |
| 1338 | |
| 1339 | def close_db(self) -> None: |
| 1340 | with self._db_lock: |
no test coverage detected