Synclets logoSynclets

createMetaConnector

Essential

The createMetaConnector function creates a custom MetaConnector instance from the provided implementation callbacks.

createMetaConnector<Depth>(
  options: MetaConnectorOptions<Depth>,
  implementations: MetaConnectorImplementations<Depth>,
  optimizations?: MetaConnectorOptimizations<Depth>,
  extraMembers?: ExtraMembers,
): MetaConnector<Depth>
TypeDescription
optionsMetaConnectorOptions<Depth>
implementationsMetaConnectorImplementations<Depth>
optimizations?MetaConnectorOptimizations<Depth>
extraMembers?ExtraMembers
returnsMetaConnector<Depth>

This low-level factory allows you to build metadata storage connectors for any backend by implementing the required timestamp operations (readTimestamp, writeTimestamp, readChildIds). Optional optimization callbacks (readTimestamps, getMeta) can improve bulk operation performance.

Most applications should use pre-built connector factories like createPgliteMetaConnector or createFileMetaConnector rather than calling this function directly.

Since

v0.0.0