Closed lainedfles closed 1 year ago
Apparently some pragmas are only valid during the connection lifespan: https://sqlite-users.sqlite.narkive.com/e3iOB8Z3/sqlite-which-pragmas-are-persistent#post4
Apparently some pragmas are only valid during the connection lifespan: https://sqlite-users.sqlite.narkive.com/e3iOB8Z3/sqlite-which-pragmas-are-persistent#post4
That makes perfect sense, it is setting NORMAL
but only for the session/connection. My bad, thanks again for everything!
Throughout testing #1011 I'd realized that while
PRAGMA synchronous = NORMAL
is executed, it isn't updated and remains at theFULL
value. Execution of the statement manually via thesqlite3
CLI utility (version 3.42.0) succeeds. Can anyone else confirm this behavior? I'm using PyQt v5.15.9 with qt5 v5.15.10.According to the official documentation,
NORMAL
can be beneficial when durability isn't critical (in my case it's not):https://github.com/evilsocket/opensnitch/blob/57838e821e073f77d92afe26f7d998bca3831ce7/ui/opensnitch/database/__init__.py#L245C13-L245C13