Cloudflare Hyperdrive

Covers Cloudflare Hyperdrive, which connects Cloudflare Workers to existing PostgreSQL and MySQL databases with global connection pooling and query caching: creating configs with wrangler hyperdrive create, wrangler.jsonc bindings, the required nodejs_compat flag, driver setup for node-postgres (pg), postgres.js and mysql2, Drizzle ORM and Prisma integration, local development, and caching and TLS options. Use when giving Workers access to RDS, Aurora, Neon or Supabase databases, setting up connection pooling or a hybrid architecture, or debugging errors such as Failed to acquire a connection from the pool, TLS not supported by the database, connection refused, missing nodejs_compat, or Code generation from strings disallowed.

jackspace Updated

File contents

jackspace/ClaudeSkillz/tree/main/skills/cloudflare-hyperdrive commit b0f7bda7cc

Frequently asked questions

npx skillmds@latest add jackspace/cloudflare-hyperdrive