Use Multiple Ecto Repos
Learn how to use multiple repos.
Our applications will only have to work with one database most of the time, so we’ll only need one repo. Sometimes, though, we’ll need to connect to multiple databases. In that case, we’ll need to set up a separate repo for each database. Ecto has good support for this scenario. First, we need to create the new repo.
Get hands-on with 1200+ tech skills courses.