Barna (barna v0.2.1)

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

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}

Specs

list(Ecto.Queryable.t()) :: [struct()]