Module relations

Module relations 

Source

StructsΒ§

Column
NamedColumnList
ParsedNamedArgs
Extracts named arguments from pest pairs with duplicate detection and completeness checking.
RelationParsingContext
Parsing context for relations that includes extensions, registry, and optional warning collection
TableName

TraitsΒ§

RelationParsePair
A trait for parsing relations with full context needed for tree building. This includes extensions, the parsed pair, input children, and output field count.

FunctionsΒ§

build_grouping_fields πŸ”’
Deduplicates expressions across all sets and produces the AggregateRel’s protobuf fields: a flat deduplicated expression list and per-set Grouping messages with index references into that list.
expect_one_child πŸ”’
This is a utility function for extracting a single child from the list of children, to be used in the RelationParsePair trait. The RelationParsePair trait passes a Vec of children, because some relations have multiple children - but most accept exactly one child.
i64_literal_expr πŸ”’
parse_aggregate_measures πŸ”’
Parses the output section of an aggregate (everything after =>).
parse_expression_list πŸ”’
Grammar: expression_list = { expression ~ ("," ~ expression)* }
parse_grouping_set πŸ”’
Parses a single grouping set, e.g. ($0, $1) or _.
parse_grouping_sets πŸ”’
Parses the grouping section of an aggregate (everything before =>).
parse_reference_emit πŸ”’
Parse a reference list Pair and return an EmitKind::Emit.