Function mentat_query_projector::query_projection
[−]
[src]
pub fn query_projection(
schema: &Schema,
query: &AlgebraicQuery
) -> Result<Either<ConstantProjector, CombinedProjection>>
Compute a suitable SQL projection for an algebrized query. This takes into account a number of things:
- The variable list in the find spec.
- The presence of any aggregate operations in the find spec. TODO: for now we only handle simple variables
- The bindings established by the topmost CC.
- The types known at algebrizing time.
- The types extracted from the store for unknown attributes.