porsager / postgres

Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare
The Unlicense
7.26k stars 262 forks source link

add Cloudflare Workers to README #688

Closed elithrar closed 11 months ago

elithrar commented 11 months ago

Adds an example for how to use Postgres.js with Cloudflare Workers.

porsager commented 11 months ago

Awesome Matt ! Thanks 😍

dev-cetus commented 9 months ago

hi! Is HYPERDRIVE mandatory, or does a simple connectionString work?

elithrar commented 9 months ago

@dev-cetus you can pass in a simple connection string, but each request will have to initiate a new connection to your database. This is both slow & won't scale on the database side.

dev-cetus commented 9 months ago

oh but, hyperdrive works only with paid plans...