Etso v1.1.0 Etso.ETS.MatchSpecification View Source

The ETS Match Specifications module contains various functions which convert Ecto queries to ETS Match Specifications in order to execute the given queries with ETS with as much pushed down to ETS as possible.

The basic shape of the match head is [$1, $2, $3, …] where each field is a named variable, the ordering of the fields is determined by Etso.ETS.TableStructure.

Conditions are compiled according to the wheres in the underlying Ecto query, while the body is compiled based on the selected fields in the underlying Ecto query.

Link to this section Summary

Link to this section Functions