View Source EctoShorts.QueryBuilder behaviour (ecto_shorts v2.2.1)

Behaviour for query building from filter tuples

Link to this section Summary

Callbacks

Adds to accumulator query with filter_type and value

Link to this section Types

Specs

accumulator_query() :: Ecto.Query.t()

Specs

filter_tuple() :: {filter_type :: atom(), value :: any()}

Link to this section Callbacks

Link to this callback

create_schema_filter(filter_tuple, accumulator_query)

View Source

Specs

create_schema_filter(filter_tuple(), accumulator_query()) :: Ecto.Query.t()

Adds to accumulator query with filter_type and value

Link to this section Functions

Link to this function

create_schema_filter(builder, filter_tuple, query)

View Source

Specs

create_schema_filter(module(), filter_tuple(), accumulator_query()) ::
  Ecto.Query.t()

Specs

query_schema(Ecto.Queryable.t()) :: Ecto.Queryable.t()

Pulls the schema from a query