def METHOD_NAME(self):
    # type: () -> Iterable[Union[bytes, str]]
    """Returns a record generator for the query result.
    Records will be returned line by line.
    If encoding has been configured - this will be used to decode individual
    records are they are received.
    :returns: A record generator for the query result.
    :rtype: Iterable[Union[bytes, str]]
    """
    delimiter = self.record_delimiter.encode('utf-8')
    for record_chunk in self._iter_stream():
        for record in record_chunk.split(delimiter):
            if self._encoding:
                yield record.decode(self._encoding)
            else:
                yield record