importCSVData Method @beta
Import in-memory CSV rows into an ECClass.
The rows are V8-serialized and processed in one native call. Values are converted from
their CSV string representation according to the mapped EC property type. One ECSQL
statement is reused for all rows. Every row must have the same number of columns.
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.
importCSVData(rows: ReadonlyArray<ReadonlyArray
@returns The number of imported rows.
| Parameter | Type | Description |
|---|---|---|
| rows | ReadonlyArray<ReadonlyArray |
|
| options | CSVImportOptions |
Returns - number
The number of imported rows.
Defined in
- backend/src/ECDb.ts Line 284
Last Updated: 05 November, 2026