Barna (barna v0.3.0)
This module contains all of the macro magic that ultimately generates the additional functions
in the schemas that use
it.
Functions that are added to schemas:
- fetch/1
- list/1
Link to this section Summary
Link to this section Functions
Link to this function
fetch(query)
Specs
fetch(Ecto.Queryable.t()) :: nil | struct()
Link to this function
fetch_as_tuple(query)
Specs
fetch_as_tuple(Ecto.Queryable.t()) :: {:ok, struct()} | {:error, :not_found}
Link to this function
list(query)
Specs
list(Ecto.Queryable.t()) :: [struct()]