Skip to main content

Module options

Module options 

Source
Expand description

Format-neutral collection of COPY WITH (...) options.

The option list is open: every KEY value entry the client writes is collected here, regardless of whether any format understands it. Each format codec then takes the options it knows (CopyOptionSet::take_string and friends) and rejects everything else via CopyOptionSet::reject_leftovers. This way a format can introduce its own options โ€” say a line-protocol format accepting WITH (FORMAT influxdb_line, precision 'ns') โ€” without touching the statement parser or any other codec.

Structsยง

CopyOptionSet ๐Ÿ”’
The options of a COPY ... FROM STDIN WITH (...) statement.

Enumsยง

CopyOptionValue ๐Ÿ”’
The value of one COPY option.