Skip to main content

Module schema

Module schema 

Source
Expand description

Schema IR — the parsed shape of a .cstack file. Every IR node carries source-span back-pointers so consumers can map errors to positions in the original text.

Re-exports§

pub use model::Attribute;
pub use model::EnumDecl;
pub use model::EnumVariant;
pub use model::Field;
pub use model::MixinDecl;
pub use model::Model;
pub use model::TypeArity;
pub use model::TypeDecl;
pub use model::TypeRef;
pub use procedure::Procedure;
pub use procedure::ProcedureArg;
pub use procedure::ProcedureKind;
pub use selection::SelectionQuery;
pub use view::View;
pub use view::ViewSource;

Modules§

model
Model / mixin / type / enum / field IR nodes parsed out of a .cstack file. Every IR node carries SourceSpan back-pointers so consumers (parser, LSP, generators) can map errors to source positions.
procedure
Procedure / query-mutation IR nodes parsed out of a .cstack file.
selection
Field selection / include shape used by the column-projection path.
view
View IR — the view <Name> from <Model>, ... { ... } block.

Structs§

AuthBlock
ConfigBlock
ConfigEntry
Datasource
OwnedSchemaSummary
Schema
SchemaSummary
SourceSpan

Enums§

TransportStyle
Wire-shape the schema generates for. Picked once per schema (via the top-level transport rest|rpc directive) so generated servers and clients only carry one binding’s worth of surface.