AntlUtilsEcto.Queryable behaviour (antl_utils_ecto v1.5.0) View Source

Superpower your schemas.

Link to this section Summary

Link to this section Functions

Link to this function

filter_by_field(arg, queryable)

View Source

Specs

filter_by_field({any(), any()}, any()) :: Ecto.Query.t()
Link to this function

order_by(queryable, order_bys)

View Source

Specs

order_by(Ecto.Queryable.t(), list()) :: Ecto.Queryable.t()
Link to this function

paginate(queryable, page_number, page_size)

View Source

Specs

paginate(any(), pos_integer(), pos_integer()) :: Ecto.Query.t()
Link to this function

search_by_field(arg, dynamic)

View Source

Specs

search_by_field({any(), binary()}, any()) :: Ecto.Query.DynamicExpr.t()
Link to this function

search_by_field(arg, dynamic, metadata)

View Source

Specs

search_by_field({any(), binary()}, any(), list()) :: Ecto.Query.DynamicExpr.t()
Link to this function

select_fields(queryable, fields)

View Source

Specs

select_fields(Ecto.Queryable.t(), nil | list()) :: Ecto.Queryable.t()

Link to this section Callbacks

Specs

Specs

Specs

order_by(Ecto.Queryable.t(), list() | keyword()) :: Ecto.Queryable.t()
Link to this callback

paginate(arg1, pos_integer, pos_integer)

View Source

Specs

Specs

queryable() :: Ecto.Queryable.t()

Specs

Link to this callback

select_fields(arg1, list)

View Source

Specs

select_fields(Ecto.Queryable.t(), list()) :: Ecto.Queryable.t()