def create_db_connection(migrate=False):
    db = DAL('sqlite://db.sqlite', migrate=migrate)

    db.define_table(
        'users',
        Field('username', 'string', length=50, required=True, unique=True),
        Field('password', 'string', length=128, required=True))

    return db
Connect to the database. Returns the connection.
dataset/ETHPy150Open ferhensil/flask-example/db.py/create_db_connection