Skip to main content

Module copy

Module copy 

Source

Structsยง

CopyCsvFormatParams
CopyTextFormatParams
CopyTextFormatParser
DecodedField ๐Ÿ”’
One field decoded out of a CSV record by decode_copy_format_csv: start..end indexes into the per-record output buffer (csv-core unquotes/unescapes into that buffer), and quoted records whether the fieldโ€™s first input byte was the quote character. The quote flag is what distinguishes a literal "" (quoted empty string) from an unquoted empty field (the default NULL marker), and a quoted "\." data row from the bare \. end-of-copy marker.
RawIterator

Enumsยง

CopyFormatParams

Staticsยง

END_OF_COPY_MARKER ๐Ÿ”’

Functionsยง

decode_copy_format
Decodes the given bytes into Row-s based on the given CopyFormatParams.
decode_copy_format_csv
decode_copy_format_text
encode_copy_format
Encodes the given Row into bytes based on the given CopyFormatParams.
encode_copy_format_header
encode_copy_row_binary ๐Ÿ”’
encode_copy_row_csv ๐Ÿ”’
encode_copy_row_text ๐Ÿ”’