Baz.CollectionEvents (baz v0.0.3)

Link to this section Summary

Link to this section Types

Link to this type

collection_event()

@type collection_event() :: Baz.CollectionEvents.CollectionEvent.t()
Link to this type

filter_and_order_opts()

@type filter_and_order_opts() :: [where_opt() | order_opt()]
@type order_opt() :: {:order, [atom()]}
@type where_opt() :: {:where, [{atom(), term()}]}

Link to this section Functions

Link to this function

collection_event_changeset(attrs)

@spec collection_event_changeset(map()) :: Ecto.Changeset.t() | {:error, term()}
Link to this function

filter_and_order(opts)

@spec filter_and_order(filter_and_order_opts()) :: [collection_event()]
Link to this function

get_collection_event!(id)

@spec get_collection_event!(non_neg_integer()) :: collection_event()

Gets a single collection_event.

Raises Ecto.NoResultsError if the CollectionEvent does not exist.

examples

Examples

iex> get_collection_event!("open_sea")
%CollectionEvent{}

iex> get_collection_event!("open_zea")
** (Ecto.NoResultsError)