

def get_sessionmaker(self, use_slave=False):
    'Get the sessionmaker instance used to create a Session.\n\n        This can be called for those cases where the sessionmaker() is to\n        be temporarily injected with some state such as a specific connection.\n\n        '
    self._check_factory_started()
    if use_slave:
        return self._factory._reader_maker
    else:
        return self._factory._writer_maker

dataset/ETHPy150Open openstack/oslo.db/oslo_db/sqlalchemy/enginefacade.py LegacyEngineFacade.get_sessionmaker/original