View on GitHub
Documents the functions required for associations to implement
in order to work with Ecto query mechanism.
This module contains documentation for those interested in
understanding how Ecto associations work internally. If you are
interested in an overview about associations in Ecto, you should
look into the documentation for `Ecto` and `Ecto.Schema`
Associations work in Ecto via behaviours. Anyone can add new
associations to Ecto as long as they implement the callbacks
specified in this module.
Note though that, since the associations API is in development,
existing callbacks signature and new callbacks can be added
in upcoming Ecto releases.
- Add a code example (optional).