예제 #1
0
파일: base.py 프로젝트: hub-cap/keystone
 def clear_all_data(self):
     """
     Purges the database of all data
     """
     db.unregister_models()
     logger.debug("Cleared all data from database")
     #TODO: You can't register models without passing in options
     db.register_models(options=None)
예제 #2
0
 def clear_all_data(self):
     """
     Purges the database of all data
     """
     db.unregister_models()
     logger.debug("Cleared all data from database")
     opts = self.options
     db.register_models(options=opts['keystone.backends.sqlalchemy'])