Enable WAL for DB connections
This commit is contained in:
parent
4b1b8a53c7
commit
59915be661
2 changed files with 3 additions and 2 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -183,7 +183,7 @@ cython_debug/
|
|||
|
||||
# Custom stuff
|
||||
gacha_game*.db
|
||||
gacha_game*.db.*
|
||||
gacha_game*.db*
|
||||
config*.ini
|
||||
|
||||
.idea
|
||||
.idea
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue