@property
    def connection(self):
        if self.model_cls.metadata.is_bound():
            return self.model_cls.metadata.bind

        try:
            return create_engine(self.options['db'])
        except __HOLE__ as key:
            raise OptionNotSetError(model=self.model_cls.__name__, current=key)
        except ArgumentError as e:
            raise OptionValueError(model=self.model_cls.__name__, current=self.options['db'], option='db', cause=e)
dataset/ETHPy150Open maxtepkeev/architect/architect/orms/sqlalchemy/features.py/ConnectionMixin.connection