MCPcopy
hub / github.com/django/django / close

Method close

django/db/backends/sqlite3/base.py:221–227  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

219
220 @async_unsafe
221 def close(self):
222 self.validate_thread_sharing()
223 # If database is in memory, closing the connection destroys the
224 # database. To prevent accidental data loss, ignore close requests on
225 # an in-memory db.
226 if not self.is_in_memory_db():
227 BaseDatabaseWrapper.close(self)
228
229 def _savepoint_allowed(self):
230 # When 'isolation_level' is not None, sqlite3 commits before each

Callers 9

__exit__Method · 0.45
close_poolMethod · 0.45
_closeMethod · 0.45
_nodb_cursorMethod · 0.45
_clone_test_dbMethod · 0.45
_clone_test_dbMethod · 0.45
_clone_dbMethod · 0.45

Calls 2

is_in_memory_dbMethod · 0.95

Tested by

no test coverage detected