cloudflare-hyperdrive

Connect Cloudflare Workers to PostgreSQL and MySQL databases with connection pooling.

54|Updated Nov 19, 2025
One-click install
npx skills add https://github.com/dennislee928/Ethic-Latex --skill cloudflare-hyperdrive-dennislee928
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-hyperdrive
Source: https://github.com/dennislee928/Ethic-Latex/tree/main/.claude/skills/cloudflare-hyperdrive
Command: npx skills add https://github.com/dennislee928/Ethic-Latex --skill cloudflare-hyperdrive-dennislee928

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables Cloudflare Workers to connect to existing PostgreSQL and MySQL databases, overcoming latency and connection limitations.

Core Features & Use Cases

  • Global Connection Pooling: Reduces latency by pooling connections near your database.
  • Query Caching: Caches read queries at the edge for faster responses.
  • Use Case: Integrate your Worker application with your existing AWS RDS PostgreSQL database, ensuring fast, reliable data access worldwide.

Quick Start

Use the cloudflare-hyperdrive skill to connect to your PostgreSQL database using the provided connection string.

Frequently Asked Questions about cloudflare-hyperdrive

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect Cloudflare Workers to a PostgreSQL or MySQL database?

You can connect Cloudflare Workers to PostgreSQL or MySQL databases by providing a connection string to Hyperdrive, which pools connections globally to reduce latency and round trips.

What is global connection pooling for Cloudflare Workers and how does it reduce latency?

Global connection pooling reduces latency by maintaining database connections near your PostgreSQL or MySQL database, eliminating connection round trips and optimizing data access for Workers.

Can I use Hyperdrive with existing ORMs like Drizzle or Prisma?

Yes, Hyperdrive supports various drivers like node-postgres and mysql2, as well as ORMs like Drizzle and Prisma, enabling seamless integration with your existing application stack.

How does edge query caching work for database reads in Cloudflare Workers?

Edge query caching caches read queries directly at the edge, allowing Cloudflare Workers to return frequently accessed PostgreSQL or MySQL data faster without hitting the origin database.

What are the limitations of using Hyperdrive for database connections?

While Hyperdrive optimizes connections and caches read queries, it is designed specifically for Cloudflare Workers connecting to external PostgreSQL or MySQL databases, requiring specific driver compatibility.