TinyBase logoTinyBase

Setter methods

This is the collection of setter methods within the Store interface. There are 15 setter methods in total.

setTables

The setTables method takes an object and sets the entire data of the Store.

setTablesJson

The setTablesJson method takes a string serialization of all of the Tables in the Store and attempts to update them to that.

setTablesSchema

The setTablesSchema method lets you specify the TablesSchema of the tabular part of the Store.

setTable

The setTable method takes an object and sets the entire data of a single Table in the Store.

setRow

The setRow method takes an object and sets the entire data of a single Row in the Store.

addRow

The addRow method takes an object and creates a new Row in the Store, returning the unique Id assigned to it.

setPartialRow

The setPartialRow method takes an object and sets partial data of a single Row in the Store, leaving other Cell values unaffected.

setCell

The setCell method sets the value of a single Cell in the Store.

setJson

The setJson method takes a string serialization of all of the Tables and Values in the Store and attempts to update them to those values.

setPartialValues

The setPartialValues method takes an object and sets its Values in the Store, but leaving existing Values unaffected.

setSchema

The setSchema method lets you specify the TablesSchema and ValuesSchema of the Store.

setValue

The setValue method sets a single keyed Value in the Store.

setValues

The setValues method takes an object and sets all the Values in the Store.

setValuesJson

The setValuesJson method takes a string serialization of all of the Values in the Store and attempts to update them to those values.

setValuesSchema

The setValuesSchema method lets you specify the ValuesSchema of the keyed Values part of the Store.