Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/b/o/bodhi-HEAD/alembic/versions/1eb754722e44_default_update_critp.py   bodhi(Download)
def upgrade():
    engine = op.get_bind()
    DBSession.configure(bind=engine)
    Base.metadata.bind = engine
 
def downgrade():
    engine = op.get_bind()
    DBSession.configure(bind=engine)
    Base.metadata.bind = engine
 

src/b/o/bodhi-HEAD/alembic/versions/387fda7a1ff0_default_update_sever.py   bodhi(Download)
def upgrade():
    engine = op.get_bind()
    DBSession.configure(bind=engine)
    Base.metadata.bind = engine
 

src/b/o/bodhi-HEAD/alembic/versions/343bb26e7012_default_update_pushe.py   bodhi(Download)
def upgrade():
    engine = op.get_bind()
    DBSession.configure(bind=engine)
    Base.metadata.bind = engine
 

src/b/o/bodhi-HEAD/alembic/versions/18cad09c8ab6_default_update_sugge.py   bodhi(Download)
def upgrade():
    engine = op.get_bind()
    DBSession.configure(bind=engine)
    Base.metadata.bind = engine
 

src/b/o/bodhi-HEAD/bodhi/__init__.py   bodhi(Download)
def main(global_config, testing=None, **settings):
    """ This function returns a WSGI application """
    from bodhi.models import DBSession, Base
    engine = engine_from_config(settings, 'sqlalchemy.')
    DBSession.configure(bind=engine)

src/b/o/bodhi-HEAD/bodhi/tests/models/__init__.py   bodhi(Download)
    def setup(self):
        engine = create_engine('sqlite://')
        DBSession.configure(bind=engine)
        Base.metadata.create_all(engine)
        try:

src/b/o/bodhi-HEAD/bodhi/tests/functional/base.py   bodhi(Download)
    def setUp(self):
        engine = create_engine('sqlite://')
        DBSession.configure(bind=engine)
        Base.metadata.create_all(engine)
        self.populate()