Skip to content

HyperdriveConnection

Source: src/Cloudflare/Hyperdrive/HyperdriveConnection.ts

A typed accessor for a Cloudflare Hyperdrive runtime binding inside a Worker. Provides the same shape as the raw Hyperdrive runtime object (connection string, host, port, user, password, database) plus a raw escape hatch for libraries that want direct access.

const hd = yield* Cloudflare.Hyperdrive.bind(MyHyperdrive);
const url = yield* hd.connectionString;