Drizzle has native support for PostgreSQL connections with the node-postgres and postgres.js drivers.
There are a few differences between the node-postgres and postgres.js drivers that we discovered while using both and integrating them with the Drizzle ORM. For example:
With node-postgres, you can install pg-native to boost the speed of both node-postgres and Drizzle by approximately 10%.
node-postgres supports providing type parsers on a per-query basis without globally patching things. For more details, see Types Docs.
postgres.js uses prepared statements by default, which you may need to opt out of. This could be a potential issue in AWS environments, among others, so please keep that in mind.
If there’s anything else you’d like to contribute, we’d be happy to receive your PRs here