Skip to main content

TriggerDiffUpdateRecord<TOperationId>

Experimental Alpha

Represents a diff record for a SQLite UPDATE operation. This record contains the new value and optionally the previous value. Values are stored as JSON strings.

Extends

Type Parameters

Type ParameterDefault type
TOperationId extends string | numbernumber

Properties

PropertyTypeDescriptionOverridesInherited from
idstringAlpha The modified row's id column value.-BaseTriggerDiffRecord.id
operationUPDATEAlpha 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
previous_valuestringAlpha The previous value of the row in JSON string format.--
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 updated state of the row in JSON string format.--