Mirage.Identities (mirage v0.76.0)

The Identities context.

Link to this section Summary

Functions

Returns an %Ecto.Changeset{} for tracking user_identity changes.

Creates a user_identity.

Deletes a user_identity.

Gets a single user_identity.

Returns the list of users_identities.

Link to this section Functions

Link to this function

change_user_identity(user_identity, attrs \\ %{})

Returns an %Ecto.Changeset{} for tracking user_identity changes.

Examples

iex> change_user_identity(user_identity)
%Ecto.Changeset{data: %UserIdentity{}}
Link to this function

create_user_identity(attrs \\ %{})

Creates a user_identity.

Examples

iex> create_user_identity(%{field: value})
{:ok, %UserIdentity{}}

iex> create_user_identity(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function

delete_user_identity(user_identity)

Deletes a user_identity.

Examples

iex> delete_user_identity(user_identity)
{:ok, %UserIdentity{}}

iex> delete_user_identity(user_identity)
{:error, %Ecto.Changeset{}}
Link to this function

get_user_identity!(id)

Gets a single user_identity.

Raises Ecto.NoResultsError if the User identity does not exist.

Examples

iex> get_user_identity!(123)
%UserIdentity{}

iex> get_user_identity!(456)
** (Ecto.NoResultsError)
Link to this function

list_user_identities(user)

Returns the list of users_identities.

Examples

iex> list_users_identities()
[%UserIdentity{}, ...]
Link to this function

update_user_identity(user_identity, attrs)

Updates a user_identity.

Examples

iex> update_user_identity(user_identity, %{field: new_value})
{:ok, %UserIdentity{}}

iex> update_user_identity(user_identity, %{field: bad_value})
{:error, %Ecto.Changeset{}}