Customize Your Repo

Learn how to customize Repo.

Add more functionalities to Repo

We won’t need to do much to our Repo module for many projects. With that one use Ecto.Repo call, we’ll have access to everything we need. But there may be times when we need to call some particular Repo functions repeatedly with the same set of options, or maybe we’d want to add some behavior that Repo doesn’t currently have. Fortunately, the Repo module we created is a plain old Elixir module just like ...