Back.AutomatonsComments (CAMI-Back v0.1.0)
View SourceThe AutomatonsComments context.
Summary
Functions
Returns an %Ecto.Changeset{} for tracking automaton_comments changes.
Creates a automaton_comments.
Deletes a automaton_comments.
Gets a single automaton_comments.
Returns the list of automaton_comment.
Updates a automaton_comments.
Functions
Returns an %Ecto.Changeset{} for tracking automaton_comments changes.
Examples
iex> change_automaton_comments(automaton_comments)
%Ecto.Changeset{data: %AutomatonComments{}}
Creates a automaton_comments.
Examples
iex> create_automaton_comments(%{field: value})
{:ok, %AutomatonComments{}}
iex> create_automaton_comments(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Deletes a automaton_comments.
Examples
iex> delete_automaton_comments(automaton_comments)
{:ok, %AutomatonComments{}}
iex> delete_automaton_comments(automaton_comments)
{:error, %Ecto.Changeset{}}
Gets a single automaton_comments.
Raises Ecto.NoResultsError if the Automaton comments does not exist.
Examples
iex> get_automaton_comments!(123)
%AutomatonComments{}
iex> get_automaton_comments!(456)
** (Ecto.NoResultsError)
Returns the list of automaton_comment.
Examples
iex> list_automaton_comment()
[%AutomatonComments{}, ...]
Updates a automaton_comments.
Examples
iex> update_automaton_comments(automaton_comments, %{field: new_value})
{:ok, %AutomatonComments{}}
iex> update_automaton_comments(automaton_comments, %{field: bad_value})
{:error, %Ecto.Changeset{}}