Skip to main content

Module restore

Module restore 

Expand description

Checked content-only historical restoration. The caller owns authorization and commit.

Structs§

ContentProjection
Immutable semantic content backed by a flat private arena. Child indices are meaningful only inside this projection and are never CRDT object identities.
HistoryMapEntries
HistoryMapField
HistoryMapOverlay
HistoryRestoreRoot
HistoryRestoreSchema
HistoryRootSelector
PreparedContentRestore

Enums§

HistoryMembership
HistoryRestoreNode
HistoryRootPattern
Declarative family captures are nonempty UTF-8 strings without control characters. Their byte length is in 1..=max_capture_bytes (maximum 256). Affixes are ASCII, at most 256 bytes each; the nonempty prefix contains . or :. Keys with the fixed affixes but invalid captures fail content validation.
PreservedOnCreate
RestoreError
RestoreOutcome
RestoreValueType
ScalarType

Functions§

apply_prepared_content_restore
Apply to the live document’s pending transaction; the caller commits once. An unchanged target leaves no pending operations and needs no action entry. The host must refresh cached content object handles after a changed result.
check_schema
Check a restore schema on its own, before a record exists: a schema that names no content selector, or that would rewrite the record’s own bookkeeping, is refused at registration rather than at the first restore.
prepare_content_restore
Prepare exact content restoration without mutating or committing the input.