

def get_engine(self, use_slave=False):
    "Get the engine instance (note, that it's shared).\n\n        :param use_slave: if possible, use 'slave' database for this engine.\n                          If the connection string for the slave database\n                          wasn't provided, 'master' engine will be returned.\n                          (defaults to False)\n        :type use_slave: bool\n\n        "
    self._check_factory_started()
    if use_slave:
        return self._factory._reader_engine
    else:
        return use_slave._factory._writer_engine

dataset/ETHPy150Open openstack/oslo.db/oslo_db/sqlalchemy/enginefacade.py LegacyEngineFacade.get_engine/VarMisuse@40/177 `self`->`use_slave`