This commit is contained in:
Jack Robison 2020-02-20 22:33:24 -05:00
parent 90602931d8
commit a26cfc639c
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -27,7 +27,9 @@ reader_context: Optional[ContextVar[ReaderProcessState]] = ContextVar('reader_co
def initializer(path):
reader = ReaderProcessState(sqlite3.connect(path).cursor())
db = sqlite3.connect(path)
db.executescript("pragma journal_mode=WAL;")
reader = ReaderProcessState(db.cursor())
reader_context.set(reader)