Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Cloudflare Docs
Log in

Turn your existing regional database into a globally distributed database.

Available on Free and Paid plans

Hyperdrive is a service that accelerates queries you make to existing databases, making it faster to access your data from across the globe fromCloudflare Workers, irrespective of your users' location.

Hyperdrive supports any Postgres or MySQL database, including those hosted on AWS, Google Cloud, Azure, Neon and PlanetScale. Hyperdrive also supports Postgres-compatible databases like CockroachDB and Timescale.You do not need to write new code or replace your favorite tools: Hyperdrive works with your existing code and tools you use.

Use Hyperdrive's connection string from your Cloudflare Workers application with your existing Postgres drivers and object-relational mapping (ORM) libraries:

TypeScript
import{Client} from"pg";
exportdefault{
asyncfetch(request,env,ctx):Promise<Response>{
// Create a new client instance for each request. Hyperdrive maintains the
// underlying database connection pool, so creating a new client is fast.
constclient=newClient({
connectionString:env.HYPERDRIVE.connectionString,
});
try{
// Connect to the database
awaitclient.connect();
// Sample SQL query
constresult=awaitclient.query("SELECT * FROM pg_tables");
returnResponse.json(result.rows);
}catch (e){
returnResponse.json({ error:einstanceofError?e.message:e},{ status:500});
}
},
}satisfiesExportedHandler<{ HYPERDRIVE:Hyperdrive}>;
Get started

Features

Connect your database

Connect Hyperdrive to your existing database and deploy aWorker that queries it.

PostgreSQL support

Hyperdrive allows you to connect to any PostgreSQL or PostgreSQL-compatible database.

MySQL support

Hyperdrive allows you to connect to any MySQL database.

Query Caching

Default-on caching for your most popular queries executed against your database.


Related products

Workers

Build serverless applications and deploy instantly across the globe for exceptional performance, reliability, and scale.

Pages

Deploy dynamic front-end applications in record time.


More resources

Pricing

Learn about Hyperdrive's pricing.

Limits

Learn about Hyperdrive limits.

Storage options

Learn more about the storage and database options you can build on withWorkers.

Developer Discord

Connect with the Workers community on Discord to ask questions, show what youare building, and discuss the platform with other developers.

@CloudflareDev

Follow @CloudflareDev on Twitter to learn about product announcements, andwhat is new in Cloudflare Developer Platform.


[8]
ページ先頭

©2009-2026 Movatter.jp