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§
- Reduction
Candidate - A reduction candidate: a path to a node and the operation to apply.
- Reduction
Rule - Defines what actions can be performed on an AST node during reduction.
- Reduction
Rules - Repository of reduction rules for different AST node types. Configures how different SQL constructs should be reduced.
Enums§
- Reduction
Operation - 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.