def init_db():
    with closing(connect_db()) as db:
        with app.open_resource('schema.sql') as f:
            db.cursor().executescript(f.read())
        db.commit()
Creates the database tables.
dataset/ETHPy150Open dag/flask-genshi/examples/flaskr/flaskr.py/init_db