AntlUtilsEcto.Queryable behaviour (antl_utils_ecto v2.8.6) View Source

Superpower your schemas.

Link to this section Summary

Link to this section Functions

Link to this function

filter_by_field(queryable, arg)

View Source
Link to this function

filter_by_field(queryable, arg, metadata)

View Source

Specs

filter_by_field(any(), {any(), any()}, keyword()) :: 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_size, page_number)

View Source

Specs

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

search_by_field(dynamic, arg)

View Source

Specs

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

search_by_field(dynamic, arg, metadata)

View Source

Specs

search_by_field(Ecto.Query.DynamicExpr.t(), {any(), binary()}, any()) ::
  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()