TinyBase logoTinyBase

Schemas And Persistence

These guides discuss how to set up a ValuesSchema or TablesSchema on a Store so that certain structures of data are assured - and how to load and save data to a Store from a persistence layer.

See also the Countries demo, the Todo App demos, and the Drawing demo.

Using Schemas

Schemas are a simple declarative way to say what data you would like to store.

Mutating Data With Listeners

Although listeners are normally prevented from updating data, there are times when you may want to - such as when you are programmatically checking your data as it gets updated.

Persisting Data

The persister module lets you save and load Store data to and from different locations, or underlying storage types.

Custom Persistence

When you want to load and save Store data in unusual or custom ways, you can used the createCustomPersister function to do so in any way you wish.