Skip to main content

CrudEntry

A single client-side change.

Properties

PropertyTypeDescription
clientIdnumberAuto-incrementing client-side id.
idstringID of the changed row.
metadata?stringClient-side metadata attached with this write. This field is only available when the trackMetadata option was set to true when creating a table and the insert or update statement set the _metadata column.
opUpdateTypeType of change.
opData?Record<string, any>Data associated with the change.
previousValues?Record<string, any>For tables where the trackPreviousValues option has been enabled, this tracks previous values for UPDATE and DELETE statements.
tablestringTable that contained the change.
transactionId?numberAuto-incrementing transaction id. This is the same for all operations within the same transaction.

Methods

equals()

equals(entry): boolean;

Parameters

ParameterType
entryCrudEntry

Returns

boolean


toComparisonArray()

toComparisonArray(): unknown[];

Generates an array for use in deep comparison operations

Returns

unknown[]


toJSON()

toJSON(): unknown;

Converts the change to JSON format.

Returns

unknown