TinyBase logoTinyBase β

Persisting stores

Persister

Essential

A Persister object lets you save and load Store data to and from different locations, or underlying storage types. Read more.

createDurableObjectSqlStoragePersister

Essential

The createDurableObjectSqlStoragePersister function creates a DurableObjectSqlStoragePersister object that can persist the Store to and from Cloudflare Durable Object SQLite storage. Read more.

createLocalPersister

Essential

The createLocalPersister function creates a LocalPersister object that can persist the Store to the browser's local storage. Read more.

createPglitePersister

Essential

The createPglitePersister function creates a PglitePersister object that can persist the Store to a local PGlite database. Read more.

createSessionPersister

Essential

The createSessionPersister function creates a SessionPersister object that can persist the Store to the browser's session storage. Read more.

createSqliteWasmPersister

Essential

The createSqliteWasmPersister function creates a SqliteWasmPersister object that can persist the Store to a local SQLite database. Read more.