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::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§

BinaryOp
Binary operators.
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.
Projection
Projection item in SELECT.
SpatialPredicate
Spatial predicate types.
SqlDataType
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.