servicex_matching v0.0.1 ServicexMatching.Accounts

The Accounts context.

Link to this section Summary

Functions

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

Gets a single user_profile

Returns the list of user_profiles

Link to this section Functions

Link to this function change_user_profile(user_profile)

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

Examples

iex> change_user_profile(user_profile)
%Ecto.Changeset{source: %UserProfile{}}
Link to this function create_user_profile(result, attrs \\ %{})

Creates a user_profile.

Examples

iex> create_user_profile(%{field: value})
{:ok, %UserProfile{}}

iex> create_user_profile(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function get_user_profile!(id)

Gets a single user_profile.

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

Examples

iex> get_user_profile!(123)
%UserProfile{}

iex> get_user_profile!(456)
** (Ecto.NoResultsError)
Link to this function get_user_profile_by_user_id!(user_id)
Link to this function list_user_profiles()

Returns the list of user_profiles.

Examples

iex> list_user_profiles()
[%UserProfile{}, ...]
Link to this function preload_user_profile_records(user_profile)
Link to this function update_user_profile(result, user_profile, attrs)

Updates a user_profile.

Examples

iex> update_user_profile(user_profile, %{field: new_value})
{:ok, %UserProfile{}}

iex> update_user_profile(user_profile, %{field: bad_value})
{:error, %Ecto.Changeset{}}