Haytni v0.0.1 Haytni.Users View Source

Link to this section Summary

Functions

Fetches a single user from the data store where the primary key matches the given id

Same as get_user/1 but raises Ecto.NoResultsError if no user was found

Fetches a single user from key/value pairs (Keyword or map)

Link to this section Functions

Link to this function get_user(id) View Source
get_user(id :: term()) :: Ecto.Schema.t() | nil | no_return()

Fetches a single user from the data store where the primary key matches the given id.

Returns nil if no result was found. If the struct in the queryable has no or more than one primary key, it will raise an argument error.

Link to this function get_user!(id) View Source
get_user!(id :: term()) :: Ecto.Schema.t() | no_return()

Same as get_user/1 but raises Ecto.NoResultsError if no user was found.

Link to this function get_user_by(clauses) View Source
get_user_by(clauses :: Keyword.t() | map()) :: Ecto.Schema.t() | nil

Fetches a single user from key/value pairs (Keyword or map).

Returns nil if no one matches.