TinyBase logoTinyBase

ChangedCellIds

The ChangedCellIds type describes the Cell Ids that were added or removed during a transaction.

{[tableId: Id]: {[rowId: Id]: {[cellId: Id]: IdAddedOrRemoved}}}

It is available to the DoRollback function and to a TransactionListener function via the TransactionLog object.

It is a nested object that has Table Id as a top-level key, and Row Id, and then CellId as inner keys. The values of the inner objects are IdAddedOrRemoved numbers indicating whether the Cell Id was added (1) or removed (-1) to the given Row.

Note that there will be no entry if the content of the Cell itself changed. For that you should consult the ChangedCells type.

Since

v4.0.0