Struct sql::query_model::hir::FromHir[][src]

struct FromHir {
    model: Model,
    context_stack: Vec<BoxId>,
    gets_seen: HashMap<Id, BoxId>,
}

Fields

model: Modelcontext_stack: Vec<BoxId>

The stack of context boxes for resolving offset-based column references.

gets_seen: HashMap<Id, BoxId>

Track the BoxId that represents each HirRelationExpr::Get expression we have seen so far.

Implementations

Generates a Query Graph Model for representing the given query.

Generates a sub-graph representing the given expression, ensuring that the resulting graph starts with a Select box.

Generates a sub-graph representing the given expression.

Returns a Select box ranging over the given box, projecting all of its columns.

Lowers the given expression within the context of the given box.

Note that this method may add new quantifiers to the box for subquery expressions.

Find the N-th column among the columns projected by the input quantifiers of the given box. This method translates Hir’s offset-based column into quantifier-based column references.

This method is equivalent to expr::JoinInputMapper::map_column_to_local, in the sense that given all the columns projected by a join (represented by the set of input quantifiers of the given box) it returns the input the column belongs to and its offset within the projection of the underlying operator.

Executes the given action within the context of the given box.

Adds the given predicate to the given box.

The given box must support predicates, ie. it must be either a Select box or an OuterJoin one.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more