Auth.App (auth v1.6.6)
Schema and helper functions for creating/managing Apps.
Link to this section Summary
Functions
Returns an %Ecto.Changeset{}
for tracking app changes.
Creates a app.
Deletes a app.
Gets a single app.
Returns the list of apps.
Updates a app.
Link to this section Functions
Link to this function
change_app(app, attrs \\ %{})
Returns an %Ecto.Changeset{}
for tracking app changes.
examples
Examples
iex> change_app(app)
%Ecto.Changeset{data: %App{}}
Link to this function
create_app(attrs \\ %{})
Creates a app.
examples
Examples
iex> create_app(%{field: value})
{:ok, %App{}}
iex> create_app(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function
delete_app(app)
Deletes a app.
examples
Examples
iex> delete_app(app)
{:ok, %App{}}
iex> delete_app(app)
{:error, %Ecto.Changeset{}}
Link to this function
get_app!(id)
Gets a single app.
Raises Ecto.NoResultsError
if the App does not exist.
examples
Examples
iex> Auth.App.get_app!(123)
%App{}
iex> get_app!(456)
** (Ecto.NoResultsError)
Link to this function
list_apps()
Returns the list of apps.
examples
Examples
iex> list_apps()
[%App{}, ...]
Link to this function
list_apps(conn)
Link to this function
update_app(app, attrs)
Updates a app.
examples
Examples
iex> update_app(app, %{field: new_value})
{:ok, %App{}}
iex> update_app(app, %{field: bad_value})
{:error, %Ecto.Changeset{}}