Following the advice in this question regarding how to load iex with the dependencies of the current project I was able to work with phoenix framework dependencies in a pretty productive manner. However, it gets a bit tedious having to provide the namespace of the Phoenix project for every single thing.
Rather than typing MyApp.Repo.all(MyApp.User)
I was hoping to be able to do Repo.all(User)
. I can alias each thing individually with alias MyApp.Repo, as: Repo
but is there any way to do this for everything all at once?