DB safety

This commit is contained in:
James Turk 2025-01-04 01:08:06 -06:00
parent 85fa719b96
commit 5984c28d09

View File

@ -10,7 +10,14 @@ from peewee import (
TextField,
)
db = SqliteDatabase("tasks.db")
db = SqliteDatabase(
"tasks.db",
pragmas={
"journal_mode": "wal",
"synchronous": "normal",
"foreign_keys": 1,
},
)
class TaskStatus(Enum):