(self, relation: Optional[BaseRelation])
return ''
Cache a new relation in dbt. It will show up in `list relations`.
Cache a new relation in dbt. It will show up in `list relations`.
Cache a new relation in dbt . It will show up in list relations .
def cache_added(self, relation: Optional[BaseRelation]) -> str:
        """Cache a new relation in dbt. It will show up in `list relations`."""
        if relation is None:
            name = self.nice_connection_name()
            raise_compiler_error(
                'Attempted to cache a null relation for {}'.format(name)
            )
        self.cache.add(relation)
        # so jinja doesn't render things
        return ''
def cache_added ( self , relation : Optional [ BaseRelation ] ) -> str : if relation is None : name = self . nice_connection_name ( ) raise_compiler_error ( 'Attempted to cache a null relation for {}' . format ( name ) ) self . cache . add ( relation ) # so jinja doesn't render things return ''