Connect to Postgres in a long-running node server
Hi, I'm using drizzle ORM and my backend is a long-running (not serverless) node server. How should I connect? This is how I currently do it, where
However, I see that the drizzle example does this instead (where
What is the optimal way to connect to the database in a non-serverless environment?
DATABASE_URL uses port 5432 and no query parameters:However, I see that the drizzle example does this instead (where
DATABASE_URL is on port 6543 with no query parameters:What is the optimal way to connect to the database in a non-serverless environment?