Expand description
Persisted graph-type model shared by query engines and snapshot codecs. Semantic validation and derivation stay with the in-memory engine.
Structs§
- Edge
Type Model - Persisted form of
GraphTypeEdgeTypeSpec. - Graph
Type Constraint Model - Persisted form of
GraphTypeConstraintSpec. - Graph
Type Spec - The typed, serde-serializable form of a parsed
GraphTypeBody(CIP-176/178/180). Graph-type redo ops (RedoOp::PutGraphType/RedoOp::SetCurrentGraphType) carry this model andTheaterDatastores it: parsing happens once at DDL-execution time (GraphTypeSpec::from_body), and redo replay converts back withGraphTypeSpec::to_body– an infallible, mechanical conversion, never a re-parse of Cypher text. - Inline
Constraint Model - Persisted form of
GraphTypeInlineConstraint. - Node
Type Model - Persisted form of
GraphTypeNodeTypeSpec. - Property
Type Model - Persisted form of
GraphTypePropertyType.
Enums§
- Constraint
Verb Model - Persisted form of
GraphTypeConstraintVerb. - Default
Value - The restricted
<value expression>of aDEFAULT ON COMMITclause (CIP-262 Ap1): one typed form for validation, rendering, persistence, and evaluation. - Element
RefModel - Persisted form of
GraphTypeElementRef. - Entity
Qualifier Model - Persisted form of
GraphTypeEntityQualifier. - Inline
Verb Model - Persisted form of
GraphTypeInlineVerb. - Option
Value Model - A graph-type constraint
OPTIONSvalue. The canonical renderer (canonical_option_value) maps the five literal kinds to text and every other expression to?; the model mirrors exactly that distinction, soGraphTypeSpec::to_bodyreproduces the same canonical rendering as the parsed source body. - Predefined
Type Model - Persisted form of
PredefinedKind. - Value
Type Model - Persisted form of
TypeExpr. - Vector
Coord Model - Persisted form of
VectorCoordKind.
Constants§
- DEFAULT_
ON_ COMMIT_ SEPARATOR - The separator the canonical property rendering places between the
property’s type and its
DEFAULT ON COMMITvalue – the one spelling both the renderer and the constraint-validation type-prefix split consult (the round-6 Low: the literal was spelled twice).
Functions§
- canon_
allows - The subsumption relation over normalized types: whether every value
innerallows is also allowed byouter. Nullability only rejects a nullableinnerunder aNOT NULLouter;ANYis the top; a unioninnerneeds every member covered; a unionoutercovers through any member. - canon_
intersection - The pointwise intersection of two normalized types (CIP-266 diamond
rule):
ANYis the identity; a shared predefined kind or list/vector element intersects recursively; everything else falls toNULL(the CIP’s not-instantiable marker,NOTHINGonce nullability combines). - canonical_
default_ clause - The canonical
DEFAULT ON COMMIT <CVE>clause of a property type, rendered from the parsed expression: the one rendering every canonical/display site consults (the graph-type body form, theSHOW ... AS GRAPHproperty strings, the derived property-type constraint’s stored string). The shape invariant holds at every caller (the body validator and the model capture reject a non-allowed shape before anything renders), so the capture here fails loud on its invariant instead of inventing a rendering.