PgCopy class abstract final

Conversão de linhas para o formato texto do COPY (e de volta).

Formato texto: colunas separadas por tab, linhas terminadas por \n, \N para NULL e \\, \t, \n e \r escapados com barra invertida. Ver https://www.postgresql.org/docs/current/sql-copy.html.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

decodeTextRow(List<int> line, {Encoding encoding = utf8}) → List<String?>
Decodifica uma linha no formato texto do COPY (como as recebidas por copyTo; o \n final é opcional) em uma lista de valores, com null para \N.
encodeTextRows(Iterable<List<Object?>> rows, {Encoding encoding = utf8, int? columnCount, int chunkSize = defaultChunkSize}) → Stream<List<int>>
Codifica rows no formato texto do COPY, em blocos de aproximadamente chunkSize caracteres, prontos para copyFrom.
encodeTextValue(Object value) → String
Representação de value no formato de entrada do PostgreSQL (antes do escape do COPY):

Constants

defaultChunkSize → const int
Tamanho aproximado (em caracteres) de cada bloco produzido por encodeTextRows.