コード例 #1
0
ファイル: models.py プロジェクト: SunilMamillapalli/rally
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)
コード例 #2
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)
コード例 #3
0
ファイル: models.py プロジェクト: Vaidyanath/rally
def drop_db():
    from rally.db.sqlalchemy import api as sa_api
    drop_all_objects(sa_api.get_engine())
コード例 #4
0
ファイル: models.py プロジェクト: Vaidyanath/rally
def create_db():
    from rally.db.sqlalchemy import api as sa_api

    BASE.metadata.create_all(sa_api.get_engine())
コード例 #5
0
ファイル: models.py プロジェクト: SunilMamillapalli/rally
def create_db():
    from rally.db.sqlalchemy import api as sa_api

    BASE.metadata.create_all(sa_api.get_engine())
コード例 #6
0
ファイル: models.py プロジェクト: yongfengdu/rally
def drop_db():
    from rally.db.sqlalchemy import api as sa_api
    drop_all_objects(sa_api.get_engine())