Example #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()
Example #2
0
def setup_db(app):
    """Method used to build a database"""
    db.app = app
    db.create_all()
Example #3
0
def db(app):
    _db.app = app
    _db.create_all()
    yield _db
    _db.drop_all()
Example #4
0
def db(app):
    _db.app = app
    _db.create_all()
    yield _db
    _db.drop_all()
Example #5
0
def setup_db(app):
    """Method used to build a database"""
    db.app = app
    db.create_all()