BoxTurtle.Schema.Filters.API behaviour (BoxTurtle v0.1.0)

Copy Markdown View Source

Behaviour for modules that turn a list of filters into where clauses. See BoxTurtle.Schema.Filters for the default behaviour.

Summary

Types

A list of {column_or_filter_name, value} pairs.

Types

filters()

@type filters() :: [{atom() | String.t(), term()}]

A list of {column_or_filter_name, value} pairs.

Callbacks

filter_with(t, filters)

@callback filter_with(Ecto.Queryable.t(), filters()) :: Ecto.Queryable.t()