API reference › @evolu/common › local‑first/Storage › DbChange

const DbChange: object({
  table: String,
  id: Id,
  values: ValidDbChangeValues,
  isInsert: Boolean,
  isDelete: nullOr(Boolean),
});

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.