Skip to main content

Interface: BulkUpsertOptions<T>

Defined in: src/bulk/BulkUpsertBuilder.ts:9

Configuration options for batch bulk upsert operations.

Type Parameters​

Type Parameter
T

Properties​

conflictKeys​

conflictKeys: (string | keyof T)[]

Defined in: src/bulk/BulkUpsertBuilder.ts:11

Property keys to detect existing conflicts against (e.g. ['sku'] or ['email', 'tenantId']).


update?​

optional update?: (string | keyof T)[]

Defined in: src/bulk/BulkUpsertBuilder.ts:13

Optional subset of columns to update when conflict occurs. If omitted, all non-key columns are updated.


batchSize?​

optional batchSize?: number

Defined in: src/bulk/BulkUpsertBuilder.ts:15

Chunk batch size per transactional batch (default: 500).