Expand description
Query normalization and optimizer support. Query normalization and optimization support.
This module defines canonical representations for rewrite-safe subsets of
QAIL SELECT and mutation (ADD/SET/DEL) queries.
Structs§
- Filter
Clause - Canonical WHERE clause block.
- Mutation
Clause - Canonical condition clause used by mutation normalization.
- Nested
Batch Plan - Planned batched fetch for nested relation expansion.
- Normalized
Join - Canonical JOIN item.
- Normalized
Mutation - Canonical representation for the rewrite-safe subset of mutation queries.
- Normalized
Select - Canonical representation for the rewrite-safe subset of
SELECT. - Order
ByItem - Canonical ORDER BY item.
Enums§
- Batch
Plan Error - Errors from nested batch planning.
- Nested
Relation Kind - Direction and shape of nested relation expansion.
- Normalize
Error - Errors returned when a query cannot be normalized into the supported subset.
- Normalize
Mutation Error - Errors returned when a query cannot be normalized into the supported mutation subset.
Functions§
- cleanup_
mutation - Apply deterministic cleanup for supported mutation rewrites.
- cleanup_
select - Apply a deterministic, semantics-preserving cleanup pass.
- normalize_
mutation - Normalize a QAIL mutation (
ADD,SET,DEL) into a canonical representation. - normalize_
select - Normalize a QAIL
SELECTinto a canonical representation. - plan_
nested_ batch_ fetch - Plan a batched nested-relation fetch using relation metadata and parent keys.