Skip to main content

Module load_csv

Module load_csv 

Source
Expand description

LOAD CSV file access policy and record-to-row conversion.

Files are read only beneath an explicitly configured import directory. Records are streamed through a fixed-size buffer; no plan or cache retains a resolved location or any file contents.

Structs§

CsvImportLimits
Resource bounds for one LOAD CSV source.
CsvImportPolicy
The directory LOAD CSV may read from, and its per-file limits.
CsvRecordReader
Reads records one at a time. Each record is bounded by CsvImportLimits::max_record_bytes and CsvImportLimits::max_fields_per_record, and the whole input by CsvImportLimits::max_file_bytes.
CsvRows
Streams the rows LOAD CSV binds to its variable.

Constants§

CSV_READ_BUFFER_BYTES
Bytes read from the source per refill; the only buffered file contents.

Functions§

open_load_csv
Opens a LOAD CSV source, refusing when no import policy is configured.

Type Aliases§

CsvField
One field of a record. An empty unquoted field is None, so callers can distinguish it from the quoted empty string "".