Module sql::plan [−][src]
SQL planning.
SQL planning is the process of taking the abstract syntax tree of a
Statement
and turning it into a Plan
that the dataflow layer can
execute.
Statements must be purified before they can be planned. See the
pure
module for details.
Modules
error | |
explain | This module houses a pretty printer for |
expr | This file houses a representation of a SQL plan that is parallel to that found in src/expr/relation/mod.rs, but represents an earlier phase of planning. It's structurally very similar to that file, with some differences which are noted below. It gets turned into that representation via a call to decorrelate(). |
lowering | Lowering is the process of transforming a |
plan_utils | Helper code used throughout the planner. |
query | SQL |
scope | Handles SQL's scoping rules. |
statement | Statement planning. |
transform_ast | Transformations of SQL ASTs. |
transform_expr | Transformations of SQL IR, before decorrelation. |
typeconv | Maintains a catalog of valid casts between |
Structs
Aug | |
CreateSourcePlan | |
Explanation | An |
Index | |
Params | A vector of values to which parameter references should be bound. |
PlanContext | Controls planning of a SQL query. |
QueryContext | The state required when planning a |
Sink | |
Source | |
StatementContext | Immutable state that applies to the planning of an entire |
StatementDesc | Describes the output of a SQL statement. |
Table | |
Type | |
View |
Enums
CopyFormat | |
ExecuteTimeout | |
HirRelationExpr | Just like MirRelationExpr, except where otherwise noted below. |
HirScalarExpr | Just like expr::MirScalarExpr, except where otherwise noted below. |
IndexOption | |
IndexOptionName | |
MutationKind | |
PeekWhen | Specifies when a |
Plan | Instructions for executing a SQL query. |
PlanError | |
QueryLifetime | Specifies how long a query will live. This impacts whether the query is
allowed to reason about the time at which it is running, e.g., by calling
the |
TypeInner |
Functions
describe | Creates a description of the purified statement |
plan | Produces a |
plan_default_expr | |
resolve_names | |
resolve_names_data_type | |
resolve_names_stmt | |
scalar_type_from_sql | |
unwrap_numeric_typ_mod | Returns the first two values provided as typ_mods as |