Optionalstrings: { get(idx: number): string } | nullOptionalcanEdit: MutationGuardAuto-detect column mappings based on column names
Generate mutations from matched data.
warnings, when passed, collects one message per skipped cell — one
that is not exactly a value of its column's type (see parseValue),
such as 12,5 in a Real column or ja in a Boolean one. Optional and additive: existing
callers that only want the mutation list are unaffected.
On a throw, the writes already applied stay in the view but cannot be
returned; import() / importAsync() report them in stats.mutations (#5958).
Optionalwarnings: string[]Import CSV data and apply to entities
Computed name on purpose: Vite 8's dev-time import-analysis rewrites a
literal import( method head as a dynamic import (injecting
__vite__injectQuery into the parameter list), which breaks the whole
viewer dev server with a SyntaxError. The computed form is the same
public method, invisible to that rewrite.
Optionaloptions: CsvParseOptionsAsync batched import that yields to the main thread between batches. Provides live progress updates via onProgress callback.
Optionaloptions: CsvParseOptions & {OptionalbatchSize?: numberOptionalonApplied?: (mutations: readonly Mutation[]) => voidCalled after each apply batch with the mutations it wrote, including the part of a batch that landed before a throw. Lets a host record undo history as the import goes, so an edit made while it yields stays in commit order with it (#5958).
Match CSV rows to IFC entities.
Builds the strategy's index once (see csv-match.ts) and reuses it across every row — the fix for #5167 task 3.1's O(rows × entities) linear scan.
Parse CSV content into rows
Optionaloptions: CsvParseOptionsPreview import without applying changes
Optionaloptions: CsvParseOptions
CSV Data Connector