importCSVFile Method @beta
Stream a CSV file into an ECClass.
The file must be UTF-8 encoded; an optional UTF-8 byte-order mark is accepted. It is read
and parsed in native code, and one ECSQL statement is reused for all rows. Every record must
have the same number of columns; blank records are not skipped. Boolean fields accept
true, false, 1, or 0. Integer fields must contain a base-10 value in the signed
32-bit range. Boolean, double, integer, and string EC properties are supported. The import
is all-or-nothing and callers must call saveChanges to commit it to disk.
importCSVFile(csvFilePath: string, options: CSVFileImportOptions): number
@returns The number of imported rows, excluding an optional header.
| Parameter | Type | Description |
|---|---|---|
| csvFilePath | string | |
| options | CSVFileImportOptions |
Returns - number
The number of imported rows, excluding an optional header.
Defined in
- backend/src/ECDb.ts Line 300
Last Updated: 05 November, 2026