fix(sqlite): Use DEFERRED isolation level

sqlite connection starts with no transaction if isolation level hasn't provided
This commit is contained in:
Tanmoy Sarkar 2025-10-25 19:12:25 +05:30 committed by Akhil Narang
parent 69b857a8f4
commit b2e7b6fafb
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -105,7 +105,6 @@ class SQLiteDatabase(SQLiteExceptionUtil, Database):
def get_connection(self, read_only: bool = False): def get_connection(self, read_only: bool = False):
conn = self.create_connection(read_only) conn = self.create_connection(read_only)
conn.isolation_level = None
conn.create_function("regexp", 2, regexp) conn.create_function("regexp", 2, regexp)
conn.create_function("regexp_replace", 3, regexp_replace) conn.create_function("regexp_replace", 3, regexp_replace)
pragmas = { pragmas = {