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

import type {Table} from 'tinybase';

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

Since

v1.0.0