Skip to content

Commit 827f81b

Browse files
committed
there's no need for resetting connections yet
1 parent 65036b2 commit 827f81b

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

litequery/core.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,6 @@ def _create_connection(self) -> sqlite3.Connection:
184184
conn.executescript(";".join(pragmas))
185185
return conn
186186

187-
def _reset_connection(self):
188-
if not hasattr(self._thread_local, "conn"):
189-
return
190-
try:
191-
self._thread_local.conn.close()
192-
except Exception:
193-
pass
194-
finally:
195-
del self._thread_local.conn
196-
197187
def _get_connection(self) -> sqlite3.Connection:
198188
if not hasattr(self._thread_local, "conn"):
199189
self._thread_local.conn = self._create_connection()

0 commit comments

Comments
 (0)