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\nfinal é opcional) em uma lista de valores, comnullpara\N. -
encodeTextRows(
Iterable< List< rows, {Encoding encoding = utf8, int? columnCount, int chunkSize = defaultChunkSize}) → Stream<Object?> >List< int> > -
Codifica
rowsno formato texto do COPY, em blocos de aproximadamentechunkSizecaracteres, prontos paracopyFrom. -
encodeTextValue(
Object value) → String -
Representação de
valueno formato de entrada do PostgreSQL (antes do escape do COPY):
Constants
- defaultChunkSize → const int
- Tamanho aproximado (em caracteres) de cada bloco produzido por encodeTextRows.