Skip to main content

Module ast

Module ast 

Source

Structs§

ComponentReference
Component reference (Sprint 17)
CompositeIndex
Constraint
Constraint directive (e.g., @min(10), @email)
EnumDef
A user-declared top-level enum Name { V1, V2, ... } (#enum). A sibling of Model/Struct. Referenced from a field by its bare PascalCase name. Variants are PascalCase, unique, non-empty, and map to 0..N (the stored u8 discriminant) in declaration order.
Field
ManyToManyRelation
Represents a many-to-many relationship between two models
Model
Projection
A model-level @projection(<name>: <field>, ...) directive (#113): a named, compile-time-known subset of a model’s stored columns. Generates a tailored projection struct + narrow read that materializes only PK + these fields. The identity column is always materialized regardless of whether it appears in fields (validation/codegen enforce this).
RelationPair
Schema
Struct
Represents a struct definition (Sprint 8)

Enums§

ComponentProtocol
Component protocol (Sprint 17)
ConstraintParam
Constraint parameter value
FieldType
IndexType
RelationInclusion
Relation inclusion for components (Sprint 17)
RelationType