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