Beispiel #1
0
def create():
    """ Initialize the database by creating the necessary tables and indices """

    # create all tables and indices
    db.create_all()

    # create alembic version table
    stamp()
Beispiel #2
0
def setup_db(app):
    """Method used to build a database"""
    db.app = app
    db.create_all()
Beispiel #3
0
def db(app):
    _db.app = app
    _db.create_all()
    yield _db
    _db.drop_all()
Beispiel #4
0
def db(app):
    _db.app = app
    _db.create_all()
    yield _db
    _db.drop_all()
Beispiel #5
0
def setup_db(app):
    """Method used to build a database"""
    db.app = app
    db.create_all()