Back.UserAction (CAMI-Back v0.1.0)
View SourceThe UserAction context.
Summary
Functions
Returns an %Ecto.Changeset{} for tracking blocked changes.
Creates a blocked.
Deletes a blocked.
Gets a single blocked.
Returns the list of blocked.
Updates a blocked.
Functions
Returns an %Ecto.Changeset{} for tracking blocked changes.
Examples
iex> change_blocked(blocked)
%Ecto.Changeset{data: %Blocked{}}
Creates a blocked.
Examples
iex> create_blocked(%{field: value})
{:ok, %Blocked{}}
iex> create_blocked(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Deletes a blocked.
Examples
iex> delete_blocked(blocked)
{:ok, %Blocked{}}
iex> delete_blocked(blocked)
{:error, %Ecto.Changeset{}}
Gets a single blocked.
Raises Ecto.NoResultsError if the Blocked does not exist.
Examples
iex> get_blocked!(123)
%Blocked{}
iex> get_blocked!(456)
** (Ecto.NoResultsError)
Returns the list of blocked.
Examples
iex> list_blocked()
[%Blocked{}, ...]
Updates a blocked.
Examples
iex> update_blocked(blocked, %{field: new_value})
{:ok, %Blocked{}}
iex> update_blocked(blocked, %{field: bad_value})
{:error, %Ecto.Changeset{}}