API reference › @evolu/common › local‑first/Storage › DbChange
Defined in: packages/common/src/local-first/Storage.ts:516
A DbChange is a change to a table row. Together with a unique Timestamp, it forms a CrdtMessage.
isInsert is set for a change made by an insert or upsert. It is stored and
synced with the change, but createdAt and updatedAt come from the times
of a row's changes alone; see SystemColumns.
Extends
Extended by
Properties
id
id: string & Brand<"Id">;
Inherited from
InferType.id
isDelete
isDelete: boolean | null;
Inherited from
InferType.isDelete
isInsert
isInsert: boolean;
Inherited from
InferType.isInsert
table
table: string;
Inherited from
InferType.table
values
values: Readonly<
Partial<
Record<
string,
| string
| Uint8Array<ArrayBufferLike>
| (number & Brand<"NonNaN"> & Brand<"Finite">)
| null
>
>
> & Brand<"ValidDbChangeValues">;
Inherited from
InferType.values