API Reference / @evolu/common / Evolu/Protocol / DbChange

Interface: DbChange

Defined in: packages/common/src/Evolu/Protocol.ts:288

A DbChange is a change to a table row. Together with a unique Timestamp, it forms a CrdtMessage.

TODO: Remove schema from DbChange and use NonNegativeInts instead. There is really no reason why we should encode table and column names. App knows it.

Properties

PropertyModifierTypeDefined in
idreadonlystring & Brand<"Id">packages/common/src/Evolu/Protocol.ts:290
tablereadonlystring & Brand<"Base64Url"> & Brand<"MaxLength42"> & Brand<"MinLength1"> & Brand<"TableName">packages/common/src/Evolu/Protocol.ts:289
valuesreadonlyReadonly<Record<string & Brand<"Base64Url"> & Brand<"MaxLength42"> & Brand<"MinLength1"> & Brand<"ColumnName">, null | string | number | Uint8Array<ArrayBufferLike>>>packages/common/src/Evolu/Protocol.ts:291

Was this page helpful?