Back.Posts.PostActions (CAMI-Back v0.1.0)
View SourceThe Posts.PostActions context.
Summary
Functions
Returns an %Ecto.Changeset{} for tracking post_actions changes.
Creates a post_actions.
Deletes a post_actions.
Gets a single post_actions.
Returns the list of posts_actions.
Updates a post_actions.
Functions
Returns an %Ecto.Changeset{} for tracking post_actions changes.
Examples
iex> change_post_actions(post_actions)
%Ecto.Changeset{data: %PostActions{}}
Creates a post_actions.
Examples
iex> create_post_actions(%{field: value})
{:ok, %PostActions{}}
iex> create_post_actions(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Deletes a post_actions.
Examples
iex> delete_post_actions(post_actions)
{:ok, %PostActions{}}
iex> delete_post_actions(post_actions)
{:error, %Ecto.Changeset{}}
Gets a single post_actions.
Raises Ecto.NoResultsError if the Post actions does not exist.
Examples
iex> get_post_actions!(123)
%PostActions{}
iex> get_post_actions!(456)
** (Ecto.NoResultsError)
Returns the list of posts_actions.
Examples
iex> list_posts_actions()
[%PostActions{}, ...]
Updates a post_actions.
Examples
iex> update_post_actions(post_actions, %{field: new_value})
{:ok, %PostActions{}}
iex> update_post_actions(post_actions, %{field: bad_value})
{:error, %Ecto.Changeset{}}