Struct sql::query_model::hir::FromHir [−][src]
Fields
model: Model
context_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
impl !RefUnwindSafe for FromHir
impl !UnwindSafe for FromHir
Blanket Implementations
Mutably borrows from an owned value. Read more
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