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
Property | Modifier | Type | Defined in |
---|---|---|---|
id | readonly | string & Brand <"Id" > | packages/common/src/Evolu/Protocol.ts:290 |
table | readonly | string & Brand <"Base64Url" > & Brand <"MaxLength42" > & Brand <"MinLength1" > & Brand <"TableName" > | packages/common/src/Evolu/Protocol.ts:289 |
values | readonly | Readonly <Record <string & Brand <"Base64Url" > & Brand <"MaxLength42" > & Brand <"MinLength1" > & Brand <"ColumnName" >, null | string | number | Uint8Array <ArrayBufferLike >>> | packages/common/src/Evolu/Protocol.ts:291 |