def rebuild_db(): try: connection = connect_db() msg = DbContext.rebuild_database(connection, app.open_resource) except Exception as e: msg = 'Rebuilding the database an exception took place: %s' % str(e) return msg
def recreate_database(cls, connection): return DbContext.rebuild_database(connection, cls._open_schema_file)