示例#1
0
 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
 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
 def _rollback(self):
     try:
         BaseDatabaseWrapper._rollback(self)
     except self.NotSupportedError:
         pass
示例#4
0
 def _rollback(self):
     try:
         BaseDatabaseWrapper._rollback(self)
     except self.NotSupportedError:
         pass