Skip to main content

Module plan

Module plan 

Source
Expand description

Hasura’s links_bool_exp as substitution queries.

The part of a where that is a conjunction of equalities and relations becomes one restriction over joined variables: {from: {type_id: {_eq: 5}}} is (($i: * $v1 *) ($v1: 5 * *)). _in and _or are unions of such queries, _and their intersection and _not what the rest leaves. What a restriction cannot say (_gt, _ilike, values) is left to the executor, which checks every candidate the plan found.

Structs§

Compiled
A plan, and whether it says all the where does.

Enums§

Plan
How a plan gets the rows of links it stands for.
Position
Which part of a triplet an id stands in: type 0 is a triplet of its own, because a triplet’s type cannot be null.

Functions§

compile
Plans a where over links.
render
A plan as text, for tests and --trace.