Skip to main content

TriggerDiffInsertRecord<TOperationId>

Experimental Alpha

Represents a diff record for a SQLite INSERT operation. This record contains the new value represented as a JSON string.

Extends

Type Parameters

Type ParameterDefault type
TOperationId extends string | numbernumber

Properties

PropertyTypeDescriptionOverridesInherited from
idstringAlpha The modified row's id column value.-BaseTriggerDiffRecord.id
operationINSERTAlpha The operation performed which created this record.BaseTriggerDiffRecord.operation-
operation_idTOperationIdAlpha Auto-incrementing primary key for the operation. Defaults to number as returned by database queries (wa-sqlite returns lower 32 bits). Can be string for full 64-bit precision when using { castOperationIdAsText: true } option.-BaseTriggerDiffRecord.operation_id
timestampstringAlpha Time the change operation was recorded. This is in ISO 8601 format, e.g. 2023-10-01T12:00:00.000Z.-BaseTriggerDiffRecord.timestamp
valuestringAlpha The value of the row, at the time of INSERT, in JSON string format.--