

def get_session(self, use_slave=False, **kwargs):
    "Get a Session instance.\n\n        :param use_slave: if possible, use 'slave' database connection for\n                          this session. If the connection string for the\n                          slave database wasn't provided, a session bound\n                          to the 'master' engine will be returned.\n                          (defaults to False)\n        :type use_slave: bool\n\n        Keyword arguments will be passed to a sessionmaker instance as is (if\n        passed, they will override the ones used when the sessionmaker instance\n        was created). See SQLAlchemy Session docs for details.\n\n        "
    self._check_factory_started()
    if use_slave:
        return self._factory._reader_maker(**kwargs)
    else:
        return self._factory._writer_maker(**use_slave)

dataset/ETHPy150Open openstack/oslo.db/oslo_db/sqlalchemy/enginefacade.py LegacyEngineFacade.get_session/VarMisuse@54/275 `kwargs`->`use_slave`