cloudflare-hyperdrive - Connect Workers to PostgreSQL/MySQL with Cloudflare Hyperdrive
Provides global connection pooling and caching for database connections from Cloudflare Workers to PostgreSQL and MySQL databases
Tags
Updated: 2026-02-09Capabilities
Typical Inputs
Typical Outputs
What this skill does
- create database connection configuration
- configure Worker bindings
- connect to PostgreSQL databases
- connect to MySQL databases
- use connection pooling
- cache prepared statements
Inputs
- Cloudflare account
- wrangler.jsonc configuration
- database connection string
- pg or mysql2 driver
- nodejs_compat flag
- Hyperdrive configuration ID
Outputs
- database query results
- configured Worker deployment
- connection string object
Requirements
- Cloudflare Workers environment
- [email protected]+
- compatibility_date 2024-09-23+
- nodejs_compat flag
- [email protected]+ or [email protected]
- database driver installation
