How to pass arguments to a dependency application?

For example Postgrex needs the following to work with pgbouncer:

Postgrex.start_link(prepare: :unnamed)

However, Postgrex is automatically started by mix when my application starts with Phoenix and Ecto. I cannot find a way to send this parameter.

Thank you!

I think you can configure it in the config.exs:

config :my_app, MyApp.Repo, prepare: :unnamed
1 Like