Skip to main content

BaseTriggerDiffRecord<TOperationId>

Experimental Alpha

Diffs created by TriggerManager#createDiffTrigger are stored in a temporary table. This is the base record structure for all diff records.

Extended by

Type Parameters

Type ParameterDefault typeDescription
TOperationId extends string | numbernumberThe type for operation_id. Defaults to number as returned by default SQLite database queries. Use string for full 64-bit precision when using { castOperationIdAsText: true } option.

Properties

PropertyTypeDescription
idstringAlpha The modified row's id column value.
operationDiffTriggerOperationAlpha The operation performed which created this record.
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.
timestampstringAlpha Time the change operation was recorded. This is in ISO 8601 format, e.g. 2023-10-01T12:00:00.000Z.