Hi. I can’t use my own custom adapter:
use Mix.Config config :connection_cache, Repo, # adapter: Ecto.Adapters.Postgres, adapter: PostgresAdapterWithoutCache, prepare: :unnamed, pool: ConnectionCache, database: "...", username: "..."
It errors with:
== Compilation error on file lib/repo.ex == ** (ArgumentError) adapter PostgresAdapterWithoutCache was not compiled, ensure it is correct and it is included as a project dependency lib/ecto/repo/supervisor.ex:42: Ecto.Repo.Supervisor.parse_config/2 lib/repo.ex:2: (module) (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
It’s in the
lib/ dir and if I startup
iex -S mix without that adapter, then in the console, it seems to be there:
iex(1)> Code.ensure_loaded? PostgresAdapterWithoutCache true
Why? Thanks for the help.