ExTeal.Resource.Repo behaviour (ExTeal v0.21.0) View Source

Link to this section Summary

Callbacks

Defines the module use-ing Ecto.Repo to be used by the resource.

Link to this section Callbacks

Specs

repo() :: module()

Defines the module use-ing Ecto.Repo to be used by the resource.

Defaults to the value set in config if present:

config :ex_teal,
   repo: MyApp.Repo

Default can be overridden per resource:

def repo, do: MyApp.SecondaryRepo