Skip to main content

Module types

Module types 

Source
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::types_expr::BinaryOp;
pub use crate::types_expr::SqlDataType;
pub use crate::types_expr::SqlExpr;
pub use crate::types_expr::SqlValue;
pub use crate::types_expr::UnaryOp;
pub use crate::catalog::SqlCatalog;
pub use crate::catalog::SqlCatalogError;

Structs§

AggregateExpr
Aggregate expression: COUNT(*), SUM(amount), etc.
CollectionInfo
Metadata about a collection for query planning.
ColumnInfo
Metadata about a single column.
Filter
A filter predicate.
IndexSpec
Secondary index metadata surfaced to the SQL planner.
SortKey
Sort key for ORDER BY.
WindowSpec
Window function specification.

Enums§

CompareOp
Comparison operators.
EngineType
Database engine type for a collection.
FilterExpr
Filter expression tree.
IndexState
Planner-facing index state. Mirrors the catalog variant but lives here so the SQL crate doesn’t depend on nodedb internals.
JoinType
SQL join type.
KvInsertIntent
INSERT-vs-UPSERT intent carried on SqlPlan::KvInsert.
Projection
Projection item in SELECT.
SpatialPredicate
Spatial predicate types.
SqlPlan
The top-level plan produced by the SQL planner.