Type Alias: InsertResult
type InsertResult = object;Defined in: packages/sdk/src/index.ts:378
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
failed? |
( | { field: string; index: number; reason: "invalid_value"; type: string; } | { field: string; index: number; reason: "duplicate"; })[] |
Rows refused, each alone (index = the row’s position in rows); every other row landed. invalid_value: field won’t cast to the column’s type. duplicate: the row repeats a unique value (field) already stored or on an earlier row of the batch. |
packages/sdk/src/index.ts:392 |
index? |
string |
The CREATE UNIQUE INDEX a key’s first use ran. |
packages/sdk/src/index.ts:387 |
rowCount |
number |
- | packages/sdk/src/index.ts:382 |
rows |
Record<string, unknown>[] |
The landed rows as stored (RETURNING *), generated id included. |
packages/sdk/src/index.ts:381 |
status |
"ok" |
- | packages/sdk/src/index.ts:379 |
table |
string |
- | packages/sdk/src/index.ts:383 |
widen? |
TraceWiden |
Present only when the insert created a table or column. | packages/sdk/src/index.ts:385 |