Python django.db.backends.base.base.BaseDatabaseWrapper.close() Examples
The following are 6
code examples of django.db.backends.base.base.BaseDatabaseWrapper.close().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
django.db.backends.base.base.BaseDatabaseWrapper
, or try the search function
.
Example #1
Source File: base.py From GTDWeb with GNU General Public License v2.0 | 5 votes |
def close(self): self.validate_thread_sharing() # If database is in memory, closing the connection destroys the # database. To prevent accidental data loss, ignore close requests on # an in-memory db. if not self.is_in_memory_db(self.settings_dict['NAME']): BaseDatabaseWrapper.close(self)
Example #2
Source File: base.py From bioforum with MIT License | 5 votes |
def close(self): self.validate_thread_sharing() # If database is in memory, closing the connection destroys the # database. To prevent accidental data loss, ignore close requests on # an in-memory db. if not self.is_in_memory_db(): BaseDatabaseWrapper.close(self)
Example #3
Source File: base.py From Hands-On-Application-Development-with-PyCharm with MIT License | 5 votes |
def close(self): self.validate_thread_sharing() # If database is in memory, closing the connection destroys the # database. To prevent accidental data loss, ignore close requests on # an in-memory db. if not self.is_in_memory_db(): BaseDatabaseWrapper.close(self)
Example #4
Source File: base.py From python with Apache License 2.0 | 5 votes |
def close(self): self.validate_thread_sharing() # If database is in memory, closing the connection destroys the # database. To prevent accidental data loss, ignore close requests on # an in-memory db. if not self.is_in_memory_db(): BaseDatabaseWrapper.close(self)
Example #5
Source File: base.py From openhgsenti with Apache License 2.0 | 5 votes |
def close(self): self.validate_thread_sharing() # If database is in memory, closing the connection destroys the # database. To prevent accidental data loss, ignore close requests on # an in-memory db. if not self.is_in_memory_db(self.settings_dict['NAME']): BaseDatabaseWrapper.close(self)
Example #6
Source File: base.py From python2017 with MIT License | 5 votes |
def close(self): self.validate_thread_sharing() # If database is in memory, closing the connection destroys the # database. To prevent accidental data loss, ignore close requests on # an in-memory db. if not self.is_in_memory_db(): BaseDatabaseWrapper.close(self)