Baz.CollectionAssetImports (baz v0.0.16)
Link to this section Summary
Functions
Returns an %Ecto.Changeset{}
for tracking collection_asset_import changes.
Deletes a collection_asset_import.
Gets collection_asset_imports that match the where clause sorted by the order clause.
Gets a single collection_asset_import.
Updates a collection_asset_import.
Link to this section Types
Link to this type
collection_asset_import()
@type collection_asset_import() :: Baz.CollectionAssetImports.CollectionAssetImport.t()
Link to this type
create_attrs()
@type create_attrs() :: Baz.CollectionAssetImports.Services.CreateCollectionAssetImport.attrs()
Link to this type
filter_and_order_opts()
Link to this type
order_opt()
@type order_opt() :: Baz.CollectionAssetImports.Queries.FilterAndOrder.order_opt()
Link to this type
where_opt()
@type where_opt() :: Baz.CollectionAssetImports.Queries.FilterAndOrder.where_opt()
Link to this section Functions
Link to this function
change_collection_asset_import(collection_asset_import, attrs \\ %{})
@spec change_collection_asset_import(collection_asset_import(), map()) :: Ecto.Changeset.t()
Returns an %Ecto.Changeset{}
for tracking collection_asset_import changes.
examples
Examples
iex> change_collection_asset_import(collection_asset_import)
%Ecto.Changeset{data: %CollectionAssetImport{}}
Link to this function
create_collection_asset_import(attrs)
@spec create_collection_asset_import(create_attrs()) :: {:ok, collection_asset_import()} | {:error, Baz.CollectionAssetImports.Services.CreateCollectionAssetImport.error_reason()}
Link to this function
delete_collection_asset_import(collection_asset_import)
Deletes a collection_asset_import.
examples
Examples
iex> delete_collection_asset_import(collection_asset_import)
{:ok, %CollectionAssetImport{}}
iex> delete_collection_asset_import(collection_asset_import)
{:error, %Ecto.Changeset{}}
Link to this function
filter_and_order(opts)
@spec filter_and_order(filter_and_order_opts()) :: [collection_asset_import()]
Gets collection_asset_imports that match the where clause sorted by the order clause.
examples
Examples
iex> filter_and_order(where: [venue: "open_sea"], order: [desc: :venue])
[%CollectionAssetImport{}]
Link to this function
get_collection_asset_import!(id)
Gets a single collection_asset_import.
Raises Ecto.NoResultsError
if the CollectionAssetImport does not exist.
examples
Examples
iex> get_collection_asset_import!(123)
%CollectionAssetImport{}
iex> get_collection_asset_import!(456)
** (Ecto.NoResultsError)
Link to this function
update_collection_asset_import(collection_asset_import, attrs)
@spec update_collection_asset_import(collection_asset_import(), map()) :: {:ok, collection_asset_import()} | {:error, Ecto.Changeset.t()}
Updates a collection_asset_import.
examples
Examples
iex> update_collection_asset_import(collection_asset_import, %{field: new_value})
{:ok, %CollectionAssetImport{}}
iex> update_collection_asset_import(collection_asset_import, %{field: bad_value})
{:error, %Ecto.Changeset{}}