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§
- CsvImport
Limits - Resource bounds for one
LOAD CSVsource. - CsvImport
Policy - The directory
LOAD CSVmay read from, and its per-file limits. - CsvRecord
Reader - Reads records one at a time. Each record is bounded by
CsvImportLimits::max_record_bytesandCsvImportLimits::max_fields_per_record, and the whole input byCsvImportLimits::max_file_bytes. - CsvRows
- Streams the rows
LOAD CSVbinds 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 CSVsource, 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"".