(self)
| 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 |
no test coverage detected