How to setup Poolboy for Postgrex?

Hello,

I’m trying to setup Poolboy for Postgrex (not Ecto). I understand I have to go via DBConnection, but I guess I’m not elixir fluent-enough to understand the steps (and Poolboy being pure erlang and not native elixir doesn’t really help :stuck_out_tongue: ) …
Have you a sample to show me or some more explanations than the DBConnection documentation?
https://hexdocs.pm/db_connection/DBConnection.html

Thank you

2 Likes

Auto answer: it took me some time, but I achieve my goal.
For those who search a demonstration, here a simple repository using a pool of connection with Poolboy:

HTH

3 Likes