Expand description
SqlPlan intermediate representation types.
These types represent the output of the nodedb-sql planner. Both Origin (server) and Lite (embedded) map these to their own execution model.
Re-exports§
pub use crate::catalog::SqlCatalog;pub use crate::catalog::SqlCatalogError;
Structs§
- Aggregate
Expr - Aggregate expression:
COUNT(*),SUM(amount), etc. - Collection
Info - Metadata about a collection for query planning.
- Column
Info - Metadata about a single column.
- Filter
- A filter predicate.
- Index
Spec - Secondary index metadata surfaced to the SQL planner.
- SortKey
- Sort key for ORDER BY.
- Window
Spec - Window function specification.
Enums§
- Binary
Op - Binary operators.
- Compare
Op - Comparison operators.
- Engine
Type - Database engine type for a collection.
- Filter
Expr - Filter expression tree.
- Index
State - Planner-facing index state. Mirrors the catalog variant but lives here
so the SQL crate doesn’t depend on
nodedbinternals. - Join
Type - SQL join type.
- Projection
- Projection item in SELECT.
- Spatial
Predicate - Spatial predicate types.
- SqlData
Type - SQL data type for schema resolution.
- SqlExpr
- SQL expression tree.
- SqlPlan
- The top-level plan produced by the SQL planner.
- SqlValue
- SQL value literal.
- UnaryOp
- Unary operators.