Skip to main content

Function: castIdInt64()

castIdInt64(rows, col): void

Defined in: src/core/releases.ts:680

castIdColumn over row objects (exported for tests).

Parameters​

rows​

ReleaseRow[]

The rows to update in place.

col​

string

The id column to cast (an idInt64 column of a ReleaseLoaderDef).

Returns​

void

Nothing; rows is mutated.

Remarks​

sdv-py _cast_ids_int64: every number / string cell becomes a bigint only when EVERY non-null value is an exact in-range INT64 integer (an integer number, a bigint, or a canonical decimal string — "007", "1.5", "abc" leave the column untouched). Pairs with applyInt64Policy, which then turns those bigints into decimal strings.

Example​

castIdInt64(rows, "id"); // rows[0].id: 123 -> 123n (then "123" after the INT64 policy)