Enable WAL for DB connections

This commit is contained in:
VD15 2025-06-07 23:59:07 +01:00
parent 4b1b8a53c7
commit 59915be661
2 changed files with 3 additions and 2 deletions

4
.gitignore vendored
View file

@ -183,7 +183,7 @@ cython_debug/
# Custom stuff
gacha_game*.db
gacha_game*.db.*
gacha_game*.db*
config*.ini
.idea
.idea

View file

@ -16,6 +16,7 @@ def connect() -> None:
CONNECTION = sqlite3.connect(DB_PATH, autocommit=True)
CONNECTION.row_factory = sqlite3.Row
CURSOR = CONNECTION.cursor()
CURSOR.execute('pragma journal_mode=wal')
def setup_administrators() -> None: