Type Alias CsvAttributeProviderOptions

CsvAttributeProviderOptions: AbstractAttributeProviderOptions & {
    data: string;
    delimiter?: string;
    headers?: string[] | null;
    httpHeaders?: Record<string, string>;
    idColumn?: string;
}

Type declaration

  • data: string

    CSV data as a string or URL to fetch the CSV data from

  • Optionaldelimiter?: string

    Delimiter used in the CSV data (default: ",")

  • Optionalheaders?: string[] | null

    Optional array of headers, if the data does not contain a header row. If not provided, the first row of the CSV data will be used as headers.

  • OptionalhttpHeaders?: Record<string, string>
  • OptionalidColumn?: string

    Column name to use as the feature ID (default: "id")