Exemplo n.º 1
0
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
Exemplo n.º 2
0
 def recreate_database(cls, connection):
     return DbContext.rebuild_database(connection, cls._open_schema_file)