Back.Automatons.Tags (CAMI-Back v0.1.0)
View SourceThe Automatons.Tags context.
Summary
Functions
Returns an %Ecto.Changeset{} for tracking tag changes.
Creates a tag.
Deletes a tag.
Gets a single tag.
Returns the list of tag.
Updates a tag.
Functions
Returns an %Ecto.Changeset{} for tracking tag changes.
Examples
iex> change_tag(tag)
%Ecto.Changeset{data: %Tag{}}
Creates a tag.
Examples
iex> create_tag(%{field: value})
{:ok, %Tag{}}
iex> create_tag(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Deletes a tag.
Examples
iex> delete_tag(tag)
{:ok, %Tag{}}
iex> delete_tag(tag)
{:error, %Ecto.Changeset{}}
Gets a single tag.
Raises Ecto.NoResultsError if the Tag does not exist.
Examples
iex> get_tag!(123)
%Tag{}
iex> get_tag!(456)
** (Ecto.NoResultsError)
Returns the list of tag.
Examples
iex> list_tag()
[%Tag{}, ...]
Updates a tag.
Examples
iex> update_tag(tag, %{field: new_value})
{:ok, %Tag{}}
iex> update_tag(tag, %{field: bad_value})
{:error, %Ecto.Changeset{}}