code: def get_relations(self, database, schema):
          
          schema = _lower(schema)
          with self.lock:
              results = [
                  r.inner for r in self.relations.values()
                  if (r.schema == _lower(schema) and
                      r.database == _lower(database))
              ]
  
          if None in results:
              dbt.exceptions.raise_cache_inconsistent(
                  'in get_relations, a None relation was found in the cache!'
              )
          return results
docs: 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