Skip to main content

Module schema_crdt

Module schema_crdt 

Source
Expand description

Loro-backed CRDT schema document for arrays.

SchemaDoc wraps a LoroDoc to give each array a CRDT-replicated schema. The schema is stored as a MessagePack blob under the key "content" in a root Loro map named "root". HLC tracking ensures that schema changes can be causally ordered with cell ops.

This is the minimum surface needed for the initial Array sync. ALTER ARRAY support (incremental dimension/attribute add, domain expansion) will build on top of the replace_schema path exposed here.

Structs§

SchemaDoc
Loro-backed CRDT document tracking a single array’s schema.

Constants§

LORO_FORMAT_VERSION
Envelope version for the Loro snapshot bytes produced and consumed by this module.