mentat/query-projector
Richard Newman 16a66517e4
Err, don't panic, on unbound variable (#518) (#590) r=emily
* Pre: switch a 'panic' to an 'unreachable'.
* Make candidate_type_column fallible. (#518)
2018-03-15 11:39:24 -07:00
..
src Err, don't panic, on unbound variable (#518) (#590) r=emily 2018-03-15 11:39:24 -07:00
tests Simple aggregates. (#584) r=emily 2018-03-12 15:18:50 -07:00
Cargo.toml Simple aggregates. (#584) r=emily 2018-03-12 15:18:50 -07:00
README.md Implement projection and querying. (#353) r=nalexander 2017-03-06 14:40:10 -08:00

This module handles the derivation from an algebrized query of two things:

  • A SQL projection: a mapping from columns mentioned in the body of the query to columns in the output.
  • A Datalog projection: a function that consumes rows of the appropriate shape (as defined by the SQL projection) to yield one of the four kinds of Datalog query result.

These two must naturally coordinate, and so they are both produced here.