コード例 #1
0
ファイル: base.py プロジェクト: 5977862/django
 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 self.settings_dict['NAME'] != ":memory:":
         BaseDatabaseWrapper.close(self)
コード例 #2
0
ファイル: base.py プロジェクト: IRI-Research/django
 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 self.settings_dict['NAME'] != ":memory:":
         BaseDatabaseWrapper.close(self)
コード例 #3
0
ファイル: base.py プロジェクト: hfeeki/geodjango
 def close(self):
     from django.conf import settings
     # 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 settings.DATABASE_NAME != ":memory:":
         BaseDatabaseWrapper.close(self)
コード例 #4
0
 def close(self):
     from django.conf import settings
     # 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 settings.DATABASE_NAME != ":memory:":
         BaseDatabaseWrapper.close(self)