Auth.App (auth v1.6.0)

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

iex> change_app(app)
%Ecto.Changeset{data: %App{}}
Link to this function

create_app(attrs \\ %{})

Creates a app.

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

iex> delete_app(app)
{:ok, %App{}}

iex> delete_app(app)
{:error, %Ecto.Changeset{}}

Gets a single app.

Raises Ecto.NoResultsError if the App does not exist.

Examples

iex> get_app!(123)
%App{}

iex> get_app!(456)
** (Ecto.NoResultsError)

Returns the list of apps.

Examples

iex> list_apps()
[%App{}, ...]
Link to this function

list_apps(conn)

Link to this function

update_app(app, attrs)

Updates a app.

Examples

iex> update_app(app, %{field: new_value})
{:ok, %App{}}

iex> update_app(app, %{field: bad_value})
{:error, %Ecto.Changeset{}}