Skip to main content

qail_core/optimizer/
mod.rs

1//! Query normalization and optimization support.
2//!
3//! This module defines canonical representations for rewrite-safe subsets of
4//! QAIL `SELECT` and mutation (`ADD`/`SET`/`DEL`) queries.
5
6mod nested_batch;
7mod normalized_mutation;
8mod normalized_select;
9mod passes;
10
11pub use nested_batch::{
12    BatchPlanError, NestedBatchPlan, NestedRelationKind, plan_nested_batch_fetch,
13};
14pub use normalized_mutation::{
15    MutationClause, NormalizeMutationError, NormalizedMutation, normalize_mutation,
16};
17pub use normalized_select::{
18    FilterClause, NormalizeError, NormalizedJoin, NormalizedSelect, OrderByItem, normalize_select,
19};
20pub use passes::{cleanup_mutation, cleanup_select};