DAL v0.3.0 DAL.Repo.Discovery
A discovery mechanism for Repos with the DAL.
This module is a wrapper to the DAL.Repo.Discoverable protocol
that allows the DAL to determine which Repo is should use for a given struct.
The DAL.Repo.Discoverable protocol should be defined for each struct while the DAL.Repo.Discovery
wrapper module allows discovery to be done on Ecto.Changeset and Ecto.Query as well.
Link to this section Summary
Functions
Find the appropriate Repo (based on the DAL.Repo.Discoverable protocol)
for the given Ecto.Queryable (a struct or a schema) or Ecto.Changeset
Link to this section Functions
Link to this function
fetch(target)
fetch(target)
fetch(Ecto.Queryable.t() | Ecto.Changeset.t()) :: Ecto.Repo.t()
fetch(Ecto.Queryable.t() | Ecto.Changeset.t()) :: Ecto.Repo.t()
Find the appropriate Repo (based on the DAL.Repo.Discoverable protocol)
for the given Ecto.Queryable (a struct or a schema) or Ecto.Changeset.