Framework guides
Keep your framework. Change the connection string.
Works with the usual suspects
- Prisma with
DATABASE_URLordirectUrl - Drizzle with the normal Postgres driver
- Rails and Django using their standard Postgres settings
psql, TablePlus, DataGrip, pgAdmin, and other SQL clients
Recommended pattern
Store the direct or pooled URL in environment variables and keep the rest of your framework configuration boring. That is the point.
DATABASE_URL=postgres://user:password@host:5432/db?sslmode=require