Synclets logoSynclets

createFileMetaConnector

The createFileMetaConnector function creates a MetaConnector that persists Timestamp metadata in a single JSON file on the file system.

createFileMetaConnector<Depth>(options: FileMetaConnectorOptions<Depth>): FileMetaConnector<Depth>
TypeDescription
optionsFileMetaConnectorOptions<Depth>
returnsFileMetaConnector<Depth>

The metadata tree is stored as a JSON object mirroring the data tree structure but containing HLC timestamps instead of Atom values. The file is read on initialization and written atomically after each timestamp change.

Since

v0.0.0