-
Notifications
You must be signed in to change notification settings - Fork 10k
Closed
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsproduct:hyperdriveHyperdrive: https://developers.cloudflare.com/hyperdrive/Hyperdrive: https://developers.cloudflare.com/hyperdrive/
Description
Existing documentation URL(s)
What changes are you suggesting?
The MySQL example of the Hyperdrive > Getting Started > Write a Worker page does not reference the HYPERDRIVE environment variable. Where the connection is created:
const connection = await createConnection({
host: env.DB_HOST,
user: env.DB_USER,
password: env.DB_PASSWORD,
database: env.DB_NAME,
port: env.DB_PORTIt should be referencing the environment variable HYPERDRIVE for these parameters:
const connection = await createConnection({
host: env.HYPERDRIVE.host,
user: env.HYPERDRIVE.user,
password: env.HYPERDRIVE.password,
database: env.HYPERDRIVE.database,
port: env.HYPERDRIVE.port,Additional information
Metadata
Metadata
Assignees
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsproduct:hyperdriveHyperdrive: https://developers.cloudflare.com/hyperdrive/Hyperdrive: https://developers.cloudflare.com/hyperdrive/
