Expand description
Physical redo ops for the WAL (ADR-0012). Not Cypher text.
Catalog-DDL ops (CatalogIndexDetail, PutGraphType,
SetCurrentGraphType) carry typed, serde-serializable payload models
captured once at DDL-execution time. Graph::apply_redo stores them
verbatim; it never re-parses Cypher text and never swallows a decode
failure.
Re-exports§
pub use wal_format_json::props_from_json;pub use wal_format_json::props_json;
Modules§
- wal_
format_ json - The WAL’s on-disk JSON codec for redo property values (ADR-0078).
Structs§
- Index
Detail Spec - Typed payload of
RedoOp::CatalogIndexDetail: the catalog facts of aCREATE INDEX, captured once at DDL-execution time from the parsed clause.apply_redostores it verbatim – it never formats a CREATE INDEX string and re-parses it. - Index
Facts - One index’s typed facts as every reader resolves them, through the fixed
precedence the
SHOW INDEXESrow and the00NA0note share: the index’sIndexDetailSpec, then the owning constraint (a constraint-backed index), then the legacyIndexDefencoding. No reader re-spells the chain, so a new detail field lands in every rendering at once. - Serving
Pair Constraint - The constraint side of an ADR-0372 serving-pair check.
- Serving
Pair Index - The index side of an ADR-0372 serving-pair check: the rule’s kind,
entity kind, labels, and properties, as the creating statement spells
them (or as the materialized
index_detailsrecord them).
Enums§
- Catalog
Name - One catalog name a
RedoOpmentions (RedoOp::catalog_names), in the namespace it belongs to. Borrowed from the op — the derivation never copies a name. - Index
Kind Spec - The DDL index kind carried by
IndexDetailSpec: a serde-serializable mirror ofrelate_parser::IndexKind. - Ontology
Op - Typed view of a store-level ontology document op (ADR-0120 §3), the
classification
RedoOp::ontology_opreturns:Setborrows the verbatim document,Dropcarries nothing. Consumers match this once instead of re-matching the redo variants. - Pull
Kind - Node vs relationship for
RedoOp::PullIdentityPut. - RedoOp
- Write
Target - What an op writes (ADR-0015 conflict classification). Total over
RedoOp: a delete is also a mutation of the same element,CreatedRelcarries the endpoints, and catalog ops carry their (borrowed) identity — consumers match once and bind everything from the classification.
Constants§
- MAX_
ONTOLOGY_ SPEC_ BYTES - The ADR-0086 object envelope bounding one ontology document (ADR-0120 §3): 16 MiB, checked before the commit is written.
Functions§
- constraint_
backing_ pair - The backing pair an index-backed constraint owns under its own name:
the catalog index row (the legacy-encoded first property, so a
constraint’s backing index and a user index on the same pair coexist
as distinct rows) and the theater detail that materializes the row’s
seek postings.
Nonefor every kind that owns no backing index. The pair’s one construction — theCREATE CONSTRAINTpath and the derived-migration install both build it here, so the backing rule lives beside its encoding. The composite detail carries the constraint’s full property list (CIP-11/46/62), so an equality seek on any constrained property is served; only the legacy row stays first-property-only. - holds_
index_ pair - The (label, property) pair a catalog row holds, judged through the legacy encoding’s one decoder — the one spelling of “this row indexes that pair”, consulted by the by-schema probe, the DDL conflict gate’s legacy-duplicate arm, and the committed schema’s held-row retirement.
- legacy_
property_ encoding - Encode an
IndexDef.propertyin the legacy{property}#{KIND}#{name}format — the encoder half ofsplit_legacy_property_encoding, which decodes the result back to(property, Some(kind)). - legacy_
property_ names - Decode a legacy
IndexDef.propertystring into its property-name list: the comma-join head ofsplit_legacy_property_encodingsplit back into names (a bare single property name is its own one-element list). The list half of the format’s decoder pair — every reader that wants the names (not the raw head) decodes through here, never an inline comma split one layer above the canonical decoder. - project_
index_ details - Apply the catalog index ops in
opstodetails. This is the speculative projectionestimate_redo_deltauses; committed replay inapply_redostores the same two ops. - serving_
pair_ conflicts - ADR-0372’s serving-pair conflict, the one canonical form, owning the whole match: the pair’s typed fields in, the verdict out. A schema rule pair conflicts only when the index kind is RANGE — the only kind that can serve a constraint’s backing (ADR-0339) — and the constraint is index-backed (uniqueness/key), on the same label and properties. Property-type/existence constraints and FULLTEXT/VECTOR/POINT indexes coexist with everything. All three creation directions consult this; a change to the rule lands here once.
- split_
legacy_ property_ encoding - Decode a legacy
IndexDef.propertystring: split the valuecatalog_create_index(and the constraint-backed index path) into its props head and index kind. A bare property name (no#) is its own head with no kind. The single decoder for this format — every reader ofIndexDef.propertygoes through here.