Search
Defines the module use-ing Ecto.Repo to be used by the resource.
use
Ecto.Repo
@callback repo() :: module()
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