def _load_driver(self):
        name = self.config.backend
        if not name:
            #Raise some exception, bail out we are done.
            raise RuntimeError('config item db.backend not set')
        if '.' in name:
            importname = name
        else:
            importname = 'pyaib.dbd.%s' % name
        basename = name.split('.').pop()
        driver_ns = import_module(importname)
        for name, cls in inspect.getmembers(driver_ns, inspect.isclass):
            if hasattr(cls, CLASS_MARKER):
                #Load up the driver
                self._driver = cls(self.config.driver.setdefault(basename, {}))
                break
        else:
            raise RuntimeError('Unable to instance db driver %r' % name)

    #Define easy data access methods
Loads the configured driver config.db.backend
dataset/ETHPy150Open facebook/pyaib/pyaib/db.py/ObjectStore._load_driver