createTinyBaseDataConnector
The createTinyBaseDataConnector function creates a TinyBaseDataConnector from an existing Store.
createTinyBaseDataConnector(store: Store): TinyBaseDataConnector| Type | Description | |
|---|---|---|
store | Store | The TinyBase Store to wrap. |
| returns | TinyBaseDataConnector | A |
This connector bridges TinyBase Stores with the Synclet API, allowing you to use an existing TinyBase Store as the backing storage for a Synclet's data. The connector maps Synclet atom operations to TinyBase's hierarchical table/row/cell structure.
This is useful when you want to leverage TinyBase's reactive queries, indexing, and other features alongside Synclet synchronization. The Store can be in-memory or persisted using TinyBase's own Persister implementations.
Note that this creates only a DataConnector. You will need a separate MetaConnector (typically using a different storage backend) to store timestamp metadata.
Since
v0.0.0