View Source EctoShorts.QueryBuilder behaviour (ecto_shorts v2.4.0)
Behaviour for query building from filter tuples
Summary
Callbacks
Adds to accumulator query with filter_type and value
Functions
Pulls the schema from a query
Types
@type accumulator_query() :: Ecto.Query.t()
Callbacks
@callback create_schema_filter(filter_tuple(), accumulator_query()) :: Ecto.Query.t()
Adds to accumulator query with filter_type and value
Functions
@spec create_schema_filter(module(), filter_tuple(), accumulator_query()) :: Ecto.Query.t()
@spec query_schema(Ecto.Queryable.t()) :: Ecto.Queryable.t()
Pulls the schema from a query