Type Alias: InsertRequest
type InsertRequest = object;Defined in: packages/sdk/src/index.ts:377
SK-SCHEMA-012 — deterministic structured insert (GLOBAL-041). Keys map
to lower_snake_case columns (serverId → server_id); a table or field the
DB hasn’t seen is created in the same transaction. No model call.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
db |
string |
- | packages/sdk/src/index.ts:378 |
key? |
string | string[] |
Upsert on these fields: a row whose key exists updates the fields it names, so a re-run import never duplicates. Its first use adds a unique index on them. Every row must carry every key field. | packages/sdk/src/index.ts:384 |
rows |
Record<string, unknown>[] |
- | packages/sdk/src/index.ts:380 |
table |
string |
- | packages/sdk/src/index.ts:379 |