Skip to main content

Module compiler

Module compiler 

Source
Expand description

Compiler sub-modules for FraiseQL v2.

§Overview

This module contains:

  • Parser / IR / Validator — parse authoring-time JSON into an intermediate representation (AuthoringIR) and validate it. Used by the CLI validate-facts command and by SchemaConverter (in fraiseql-cli).

  • Runtime sub-modules — aggregate types, aggregation planning, fact tables, and window functions, consumed by the runtime executor.

Re-exports§

pub use aggregate_types::AggregateType;
pub use aggregate_types::AggregateTypeGenerator;
pub use aggregate_types::GroupByInput;
pub use aggregate_types::HavingInput;
pub use aggregation::AggregationPlan;
pub use aggregation::AggregationPlanner;
pub use aggregation::AggregationRequest;
pub use enum_validator::EnumValidator;
pub use ir::AuthoringIR;
pub use ir::AutoParams;
pub use ir::IRArgument;
pub use ir::IRField;
pub use ir::IRMutation;
pub use ir::IRQuery;
pub use ir::IRSubscription;
pub use ir::IRType;
pub use ir::MutationOperation;
pub use parser::SchemaParser;
pub use validator::SchemaValidationError;
pub use validator::SchemaValidator;
pub use window_functions::WindowExecutionPlan;
pub use window_functions::WindowFunction;
pub use window_functions::WindowFunctionPlanner;

Modules§

aggregate_types
Aggregate Type Generation Module
aggregation
Aggregation Execution Plan Module
enum_validator
Enum type validation and parsing for GraphQL schemas.
fact_table
Fact Table Introspection Module
ir
Intermediate Representation (IR) for schema compilation.
parser
Schema parser - JSON → Authoring IR.
validator
Schema validator - validates IR for correctness.
window_allowlist
Schema-based allowlist for window query identifiers.
window_functions
Window Function Planning Module