Skip to content

Commit 896f30e

Browse files
elithrarOxyjun
authored andcommitted
Hyperdrive: add rust-postgres (#17359)
* Hyperdrive: add rust-postgres Clarifies best practice for rust-postgres. * Update src/content/docs/hyperdrive/configuration/connect-to-postgres.mdx --------- Co-authored-by: Jun Lee <[email protected]>
1 parent fb5bf8e commit 896f30e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/content/docs/hyperdrive/configuration/connect-to-postgres.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Hyperdrive uses Workers [TCP socket support](/workers/runtime-apis/tcp-sockets/#
5151
| node-postgres - `pg` | [https://node-postgres.com/](https://node-postgres.com/) | `[email protected]` | `8.11.4` introduced a bug with URL parsing and will not work. `8.11.5` fixes this. Requires the [`nodejs_compat_v2`](/workers/runtime-apis/nodejs/) compatibility flag to be set. Requires wrangler `3.78.7` or later. |
5252
| Drizzle | [https://orm.drizzle.team/](https://orm.drizzle.team/) | `0.26.2`^ | |
5353
| Kysely | [https://kysely.dev/](https://kysely.dev/) | `0.26.3`^ | |
54+
| [rust-postgres](https://github.com/sfackler/rust-postgres) | [https://docs.rs/postgres/latest/postgres/](https://docs.rs/postgres/latest/postgres/) | `v0.19.8` | Use the [`query_typed`](https://docs.rs/postgres/latest/postgres/struct.Client.html#method.query_typed) method for best performance. |
5455

5556
^ _The marked libraries use `node-postgres` as a dependency._
5657

0 commit comments

Comments
 (0)