Baz.CollectionEventImports (baz v0.0.4)

Link to this section Summary

Functions

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

Gets a single collection_event_import.

Link to this section Types

Link to this type

collection_event_import()

@type collection_event_import() ::
  Baz.CollectionEventImports.CollectionEventImport.t()
Link to this type

create_attrs()

Link to this type

filter_and_order_opts()

@type filter_and_order_opts() :: [where_opt() | order_opt()]
@type order_opt() :: {:order, [atom()]}
@type where_opt() :: {:where, [{atom(), term()}]}

Link to this section Functions

Link to this function

change_collection_event_import(collection_event_import, attrs \\ %{})

@spec change_collection_event_import(collection_event_import(), map()) ::
  Ecto.Changeset.t()

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

examples

Examples

iex> change_collection_event_import(collection_event_import)
%Ecto.Changeset{data: %CollectionAssetImport{}}
Link to this function

create_collection_event_import(attrs)

Link to this function

filter_and_order(opts)

@spec filter_and_order(filter_and_order_opts()) :: [collection_event_import()]
Link to this function

get_collection_event_import!(id)

@spec get_collection_event_import!(non_neg_integer()) :: collection_event_import()

Gets a single collection_event_import.

Raises Ecto.NoResultsError if the CollectionEventImport does not exist.

examples

Examples

iex> get_collection_event_import!("open_sea")
%CollectionEventImport{}

iex> get_collection_event_import!("open_zea")
** (Ecto.NoResultsError)
Link to this function

update_collection_event_import(collection_event_import, attrs)

@spec update_collection_event_import(collection_event_import(), map()) ::
  {:ok, collection_event_import()} | {:error, Ecto.Changeset.t()}

Updates a collection_event_import.

examples

Examples

iex> update_collection_event_import(collection_event_import, %{field: new_value})
{:ok, %CollectionEventImport{}}

iex> update_collection_event_import(collection_event_import, %{field: bad_value})
{:error, %Ecto.Changeset{}}