Snowcrawler.Interface (snowcrawler v0.1.10)
The Interface context.
Link to this section Summary
Functions
Returns an %Ecto.Changeset{}
for tracking display changes.
Creates a display.
Deletes a display.
Gets a single display.
Returns the list of displays.
Updates a display.
Link to this section Functions
Link to this function
change_display(display, attrs \\ %{})
Returns an %Ecto.Changeset{}
for tracking display changes.
examples
Examples
iex> change_display(display)
%Ecto.Changeset{data: %Display{}}
Link to this function
create_display(attrs \\ %{})
Creates a display.
examples
Examples
iex> create_display(%{field: value})
{:ok, %Display{}}
iex> create_display(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function
delete_display(display)
Deletes a display.
examples
Examples
iex> delete_display(display)
{:ok, %Display{}}
iex> delete_display(display)
{:error, %Ecto.Changeset{}}
Link to this function
get_display!(id)
Gets a single display.
Raises Ecto.NoResultsError
if the Display does not exist.
examples
Examples
iex> get_display!(123)
%Display{}
iex> get_display!(456)
** (Ecto.NoResultsError)
Link to this function
list_displays()
Returns the list of displays.
examples
Examples
iex> list_displays()
[%Display{}, ...]
Link to this function
update_display(display, attrs)
Updates a display.
examples
Examples
iex> update_display(display, %{field: new_value})
{:ok, %Display{}}
iex> update_display(display, %{field: bad_value})
{:error, %Ecto.Changeset{}}