TinyBase logoTinyBase

Setter methods

This is the collection of setter methods within the MergeableStore interface. There are 21 setter methods in total.

setTables

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

Read more

setTablesJson

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

Read more

setTablesSchema

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

Read more

setTable

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

Read more

setRow

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

Read more

addRow

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

Read more

setPartialRow

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

Read more

setCell

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

Read more

setPartialValues

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

Read more

setValues

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

Read more

setValuesJson

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

Read more

setValuesSchema

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

Read more

setValue

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

Read more

applyChanges

The applyChanges method applies a set of Changes to the Store.

Read more

applyMergeableChanges

The applyMergeableChanges method applies a set of mergeable changes or content to the MergeableStore.

Read more

merge

The merge method is a convenience method that applies the mergeable content from two MergeableStores to each other in order to bring them to the same state.

Read more

setContent

The setContent method takes an array of two objects and sets the entire data of the Store.

Read more

setDefaultContent

The setDefaultContent method sets initial content of a MergeableStore.

Read more

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.

Read more

setMergeableContent

The setMergeableContent method sets the full content of a MergeableStore, together with the metadata required to make it mergeable with another.

Read more

setSchema

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

Read more