encodeTextRows static method
Codifica rows no formato texto do COPY, em blocos de aproximadamente
chunkSize caracteres, prontos para copyFrom.
As linhas são lidas sob demanda, à medida que os blocos são consumidos.
Cada linha deve ter columnCount valores, quando informado. Os valores
aceitos estão descritos em encodeTextValue.
Implementation
static Stream<List<int>> encodeTextRows(Iterable<List<Object?>> rows,
{Encoding encoding = utf8,
int? columnCount,
int chunkSize = defaultChunkSize}) =>
Stream.fromIterable(_chunks(rows, encoding, columnCount, chunkSize));