Skip to main content

Module graph_type

Module graph_type 

Source
Expand description

Persisted graph-type model shared by query engines and snapshot codecs. Semantic validation and derivation stay with the in-memory engine.

Structs§

EdgeTypeModel
Persisted form of GraphTypeEdgeTypeSpec.
GraphTypeConstraintModel
Persisted form of GraphTypeConstraintSpec.
GraphTypeSpec
The typed, serde-serializable form of a parsed GraphTypeBody (CIP-176/178/180). Graph-type redo ops (RedoOp::PutGraphType / RedoOp::SetCurrentGraphType) carry this model and TheaterData stores it: parsing happens once at DDL-execution time (GraphTypeSpec::from_body), and redo replay converts back with GraphTypeSpec::to_body – an infallible, mechanical conversion, never a re-parse of Cypher text.
InlineConstraintModel
Persisted form of GraphTypeInlineConstraint.
NodeTypeModel
Persisted form of GraphTypeNodeTypeSpec.
PropertyTypeModel
Persisted form of GraphTypePropertyType.

Enums§

ConstraintVerbModel
Persisted form of GraphTypeConstraintVerb.
DefaultValue
The restricted <value expression> of a DEFAULT ON COMMIT clause: one typed form for validation, rendering, persistence, and evaluation.
ElementRefModel
Persisted form of GraphTypeElementRef.
EntityQualifierModel
Persisted form of GraphTypeEntityQualifier.
InlineVerbModel
Persisted form of GraphTypeInlineVerb.
OptionValueModel
A graph-type constraint OPTIONS value. The canonical renderer (canonical_option_value) maps the five literal kinds to text and every other expression to ?; the model mirrors exactly that distinction, so GraphTypeSpec::to_body reproduces the same canonical rendering as the parsed source body.
PredefinedTypeModel
Persisted form of PredefinedKind.
ValueTypeModel
Persisted form of TypeExpr.
VectorCoordModel
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 COMMIT value – 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 inner allows is also allowed by outer. Nullability only rejects a nullable inner under a NOT NULL outer; ANY is the top; a union inner needs every member covered; a union outer covers through any member.
canon_intersection
The pointwise intersection of two normalized types (CIP-266 diamond rule): ANY is the identity; a shared predefined kind or list/vector element intersects recursively; everything else falls to NULL (the CIP’s not-instantiable marker, NOTHING once 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, the SHOW ... AS GRAPH property 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.