Skip to content

@typedblite/runtime: Functions

Functions that @typedblite/runtime exports.

Name Description
createChangeStreamHandler The change stream as a request handler, so a hub can mount it under its own routes and put its own authentication in front.
diagnosticOf The diagnostic attached to an error the engine threw, or undefined for any other error.
entityId The identity a change log records an entity under.
isReplicable Whether an entity id names something two nodes could agree on.
replicateOnce Replicate once, in the requested direction, and report where to resume.
serveChangeStream Serve a change log over HTTP on its own port.

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.