TinyBase logoTinyBase

Callback type aliases

This is the collection of callback type aliases within the store module. There are 9 callback type aliases in total.

TableCallback

The TableCallback type describes a function that takes a Table's Id and a callback to loop over each Row within it.

TableCellCallback

The TableCellCallback type describes a function that takes a Cell's Id and the count of times it appears across a whole Table.

RowCallback

The RowCallback type describes a function that takes a Row's Id and a callback to loop over each Cell within it.

CellCallback

The CellCallback type describes a function that takes a Cell's Id and its value.

GetCell

The GetCell type describes a function that takes a Id and returns the Cell value for a particular Row.

MapCell

The MapCell type describes a function that takes an existing Cell value and returns another.

MapValue

The MapValue type describes a function that takes an existing Value and returns another.

ValueCallback

The ValueCallback type describes a function that takes a Value's Id and its actual value.

DoRollback

The DoRollback type describes a function that you can use to rollback the transaction if it did not complete to your satisfaction.