Module rules

Module rules 

Source
Expand description

Rules-based SQL reduction system.

This module defines reduction rules and operations for different AST node types, providing configurable reduction behavior for comprehensive SQL simplification.

Structs§

ReductionCandidate
A reduction candidate: a path to a node and the operation to apply.
ReductionRule
Defines what actions can be performed on an AST node during reduction.
ReductionRules
Repository of reduction rules for different AST node types. Configures how different SQL constructs should be reduced.

Enums§

ReductionOperation
Different types of reduction operations that can be applied.

Functions§

apply_reduction_operation
Apply a reduction operation to an AST node. Returns the new AST root if the operation was successful.
generate_reduction_candidates
Generate all possible reduction candidates for a given AST. Systematically creates all viable reduction operations.