Example #1
0
def drop_db():
    from rally.db.sqlalchemy import api as sa_api

    engine = sa_api.get_engine()
    OLD_BASE = declarative_base()
    OLD_BASE.metadata.reflect(bind=engine)
    OLD_BASE.metadata.drop_all(engine, checkfirst=True)
def drop_db():
    from rally.db.sqlalchemy import api as sa_api

    engine = sa_api.get_engine()
    OLD_BASE = declarative_base()
    OLD_BASE.metadata.reflect(bind=engine)
    OLD_BASE.metadata.drop_all(engine, checkfirst=True)
Example #3
0
def drop_db():
    from rally.db.sqlalchemy import api as sa_api
    drop_all_objects(sa_api.get_engine())
Example #4
0
def create_db():
    from rally.db.sqlalchemy import api as sa_api

    BASE.metadata.create_all(sa_api.get_engine())
Example #5
0
def create_db():
    from rally.db.sqlalchemy import api as sa_api

    BASE.metadata.create_all(sa_api.get_engine())
Example #6
0
def drop_db():
    from rally.db.sqlalchemy import api as sa_api
    drop_all_objects(sa_api.get_engine())