AntlUtilsEcto.Query (antl_utils_ecto v2.8.6) View Source

Set of utils for Ecto.Query

Link to this section Summary

Link to this section Types

Specs

status() :: :ended | :ongoing | :scheduled

Link to this section Functions

Link to this macro

json_extract(field, path)

View Source (macro)

Specs

json_extract(Macro.t(), Macro.t()) :: Macro.t()
Link to this function

or_where(queryable, key, value)

View Source

Specs

or_where(any(), atom(), nil | binary() | [any()]) :: Ecto.Query.t()
Link to this function

or_where_like(queryable, key, value)

View Source

Specs

or_where_like(any(), atom(), binary()) :: Ecto.Query.t()
Link to this function

or_where_not(queryable, key, value)

View Source

Specs

or_where_not(any(), atom(), nil | binary() | [any()]) :: Ecto.Query.t()
Link to this function

where(queryable, key, value)

View Source

Specs

where(any(), atom(), nil | binary() | [any()] | integer() | boolean()) ::
  Ecto.Query.t()
Link to this function

where_extracted_json_contains(queryable, field, path, value)

View Source

Specs

where_extracted_json_contains(Ecto.Queryable.t(), atom(), binary(), binary()) ::
  Ecto.Queryable.t()
Link to this function

where_in_period(queryable, start_at_key, end_at_key, datetime)

View Source

Specs

where_in_period(any(), atom(), atom(), DateTime.t()) :: Ecto.Query.t()
Link to this function

where_like(queryable, key, value)

View Source

Specs

where_like(any(), atom(), binary()) :: Ecto.Query.t()
Link to this function

where_not(queryable, key, value)

View Source

Specs

where_not(any(), atom(), nil | binary() | [any()] | integer() | boolean()) ::
  Ecto.Query.t()
Link to this function

where_period_status(queryable, status, start_at_key, end_at_key, datetime)

View Source

Specs

where_period_status(
  Ecto.Queryable.t(),
  status() | [status()],
  atom(),
  atom(),
  DateTime.t()
) ::
  Ecto.Query.t()