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

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.

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

Delegates to FromHir::generate_expr for each element.

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.

Trait Implementations§

Returns the “default value” for a type. Read more

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

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
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