make sure WAL mode is active

This commit is contained in:
ducklet 2023-03-28 23:06:14 +02:00
parent 37e8d53b78
commit 8b5cbdf903

View file

@ -40,6 +40,8 @@ async def open_connection_pool() -> None:
db = shared_connection() db = shared_connection()
await db.connect() await db.connect()
await db.execute(sa.text("PRAGMA journal_mode=WAL"))
await apply_db_patches(db) await apply_db_patches(db)