You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Postgres.js (**recommended**) |[https://github.com/porsager/postgres](https://github.com/porsager/postgres)|`[email protected]`| Supported in both Workers & Pages. |
51
-
| 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. |
50
+
| 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`](/workers/runtime-apis/nodejs/)`compatibility_flags` and the `compatibility_date` to be set. Requires wrangler `3.78.7` or later. |
|[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. |
@@ -97,14 +96,9 @@ Install the `node-postgres` driver:
97
96
npm install pg
98
97
```
99
98
100
-
**Ensure you have `compatibility_flags = ["nodejs_compat_v2"]` set in your `wrangler.toml` configuration file**:
99
+
**Ensure you have `compatibility_flags` and `compatibility_date` set in your `wrangler.toml` configuration file** as shown below:
0 commit comments