TinyBase logoTinyBase

Table

The Table type is the data structure representing the data in a single table.

{[rowId: Id]: Row}

A Table is used when setting a table with the setTable method, and when getting it back out again with the getTable method. A Table object is a regular JavaScript object containing individual Row objects, keyed by their Id.

Example

const table: Table = {
  fido: {species: 'dog', color: 'brown'},
  felix: {species: 'cat'},
};