Baz.Venues (baz v0.0.5)

Link to this section Summary

Link to this section Types

Link to this type

filter_and_order_opts()

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

Link to this section Functions

Link to this function

filter_and_order(opts)

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

get_venue!(name)

@spec get_venue!(String.t()) :: term()

Gets a single venue.

Raises Ecto.NoResultsError if the Venue does not exist.

examples

Examples

iex> get_venue!("open_sea")
%Venue{}

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

load_config(venue_config \\ Application.get_env(:baz, :venues, %{}))