Skip to content

Unclear what library you recommend for interfacing with postgres using hyperdrive #26509

@danieltroger

Description

@danieltroger

Existing documentation URL(s)

The docs here https://developers.cloudflare.com/hyperdrive/configuration/connect-to-private-database/#32-query-your-database

Use https://www.npmjs.com/package/postgres in the example

Image

But after setting up hyperdrive, the following modal suggests using https://www.npmjs.com/package/pg

Image

What changes are you suggesting?

Unify the examples to recommend one library.

Now I have to make an educated guess that https://www.npmjs.com/package/pg is probably better for the use-case as

  1. https://www.npmjs.com/package/pg-cloudflare exists
  2. it has 10x downloads
  3. it has native bindings (idk if these work with CF Workers though)

Additional information

No response

Metadata

Metadata

Labels

content:editRequest for content editsdocumentationDocumentation editsproduct:hyperdriveHyperdrive: https://developers.cloudflare.com/hyperdrive/

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions