Skip to main content

Module ir

Module ir 

Source
Expand description

Serializable scalar SQL IR shared by analysis, planning, and execution.

Re-exports§

pub use call_arguments::analyze_expression_call_arguments;
pub use call_arguments::scalar_call_arguments_with_control;

Structs§

ResultCollation
An analyzed result keeps its coercibility as well as its OID: an explicit selection outranks implicit inputs, and an indeterminate selection retains the conflicting identities for later key diagnostics.
RetainedConstantValue
An immutable positional value in a shared owner. Copying this handle never reads or copies the payload.
RetainedScalarLiteral
Selected result metadata of a constant whose bytes are owned by execution storage. This carries an evaluated datum, never an expression to evaluate again.
ScalarOrder
ScalarWindowFrame
ScalarWindowSpec

Enums§

ScalarExpr
ScalarFrameBound

Traits§

ConstantValueSource
Storage for an already evaluated value. Reading must reproduce the original value without invoking SQL or changing it; implementations own their resource until the final shared handle is dropped.
ConstantValueStorage
Planner supplies a successfully evaluated constant; execution supplies its bounded storage implementation.

Functions§

analyze_expression_call_arguments
Decode SQL call markers carried by expression plans without evaluating arguments.
scalar_call_arguments_with_control
Decode the same borrowed markers into an admitted temporary container. Names and expression nodes remain borrowed from the input IR owner.

Type Aliases§

SubqueryId
Index into the query children owned by the enclosing expression plan.