Can you start Postgrex to specify unnamed queries from Ecto?

I’m using PgBouncer in my postgres database, but connecting to that database using my Repo configuration with Ecto. Under this circumstance, how can I start Postgrex specifying unnamed queries as directed when using PgBouncer since I’m not starting it directly?

Postgrex.start_link(prepare: :unnamed)

1 Like

You can pass any postgrex options in the repo configuration (statically in config or dynamically in init/2) or when starting the repo in your supervision tree

1 Like