Sep 26, 2022
0
Level 2
Vapor with DigitalOcean database Pool connection?
Hi, I have a Vapor application running with a connection the a PostgreSQL-database hosted access as a public network. I added these credentials:
DB_HOST=foobar-postgresql-ams3-hi-do-user-1337-0.b.db.ondigitalocean.com
DB_PORT=25060
And of course DB_USER and DB_PASSWORD.
This is working, but it's not a large database cluster, so I want to connect to a Connection Pool.
When I pick the Host and Port from the Connection details, it doesn't connect like it should.
Anyone tips how I can connect to a Database via the Connection Pool?
Please or to participate in this conversation.