(
        self, database: Optional[str], schema: Optional[str]
    )
return results
Case-insensitively yield all relations matching the given schema.

        :param str schema: The case-insensitive schema name to list from.
        :return List[BaseRelation]: The list of relations with the given
            schema
Case-insensitively yield all relations matching the given schema.
Case - insensitively yield all relations matching the given schema .
def get_relations(
        self, database: Optional[str], schema: Optional[str]
    ) -> List[Any]:
        """Case-insensitively yield all relations matching the given schema.

        :param str schema: The case-insensitive schema name to list from.
        :return List[BaseRelation]: The list of relations with the given
            schema
        """
        database = lowercase(database)
        schema = lowercase(schema)
        with self.lock:
            results = [
                r.inner for r in self.relations.values()
                if (lowercase(r.schema) == schema and
                    lowercase(r.database) == database)
            ]

        if None in results:
            dbt.exceptions.raise_cache_inconsistent(
                'in get_relations, a None relation was found in the cache!'
            )
        return results
def get_relations ( self , database : Optional [ str ] , schema : Optional [ str ] ) -> List [ Any ] : database = lowercase ( database ) schema = lowercase ( schema ) with self . lock : results = [ r . inner for r in self . relations . values ( ) if ( lowercase ( r . schema ) == schema and lowercase ( r . database ) == database ) ] if None in results : dbt . exceptions . raise_cache_inconsistent ( 'in get_relations, a None relation was found in the cache!' ) return results