|
1 | 1 | # @neondatabase/serverless |
2 | 2 |
|
3 | | -`@neondatabase/serverless` is [Neon](https://neon.tech)'s PostgreSQL driver for JavaScript and TypeScript. It's: |
| 3 | +`@neondatabase/serverless` is [Neon](https://neon.com)'s PostgreSQL driver for JavaScript and TypeScript. It's: |
4 | 4 |
|
5 | | -- **Low-latency**, thanks to [message pipelining](https://neon.tech/blog/quicker-serverless-postgres) and other optimizations |
| 5 | +- **Low-latency**, thanks to [message pipelining](https://neon.com/blog/quicker-serverless-postgres) and other optimizations |
6 | 6 | - **Ideal for serverless/edge** deployment, using https and WebSockets in place of TCP |
7 | 7 | - **A drop-in replacement** for [node-postgres](https://node-postgres.com/), aka [`pg`](https://www.npmjs.com/package/pg) (on which it's based) |
8 | 8 |
|
@@ -55,7 +55,7 @@ const [post] = await sql`SELECT * FROM posts WHERE id = ${postId}`; |
55 | 55 | // `post` is now { id: 12, title: 'My post', ... } (or undefined) |
56 | 56 | ``` |
57 | 57 |
|
58 | | -Note: interpolating `${postId}` here is [safe from SQL injection](https://neon.tech/blog/sql-template-tags). |
| 58 | +Note: interpolating `${postId}` here is [safe from SQL injection](https://neon.com/blog/sql-template-tags). |
59 | 59 |
|
60 | 60 | There are [more details and options for `neon()` function](CONFIG.md). |
61 | 61 |
|
@@ -140,7 +140,7 @@ Queries using `Pool` and `Client` are carried by WebSockets. There are **two key |
140 | 140 |
|
141 | 141 | That means `Pool` or `Client` objects must be connected, used and closed **within a single request handler**. Don't create them outside a request handler; don't create them in one handler and try to reuse them in another; and to avoid exhausting available connections, don't forget to close them. |
142 | 142 |
|
143 | | - Note: on Cloudflare Workers, [consider using Cloudflare Hyperdrive](https://neon.tech/blog/hyperdrive-neon-faq) instead of this driver. |
| 143 | + Note: on Cloudflare Workers, [consider using Cloudflare Hyperdrive](https://neon.com/blog/hyperdrive-neon-faq) instead of this driver. |
144 | 144 |
|
145 | 145 | These points are demonstrated in the examples below. |
146 | 146 |
|
@@ -300,4 +300,4 @@ This code is released under the [MIT license](LICENSE). |
300 | 300 |
|
301 | 301 | ## Feedback and support |
302 | 302 |
|
303 | | -Please visit [Neon Community](https://community.neon.tech/) or [Support](https://neon.tech/docs/introduction/support). |
| 303 | +Please visit [Neon Community](https://community.neon.tech/) or [Support](https://neon.com/docs/introduction/support). |
0 commit comments