1 parent 65036b2 commit 827f81bCopy full SHA for 827f81b
1 file changed
litequery/core.py
@@ -184,16 +184,6 @@ def _create_connection(self) -> sqlite3.Connection:
184
conn.executescript(";".join(pragmas))
185
return conn
186
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
-
197
def _get_connection(self) -> sqlite3.Connection:
198
if not hasattr(self._thread_local, "conn"):
199
self._thread_local.conn = self._create_connection()
0 commit comments