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
Copy file name to clipboardExpand all lines: README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ More info for the `ssl` option can be found in the [Node.js docs for tls connect
68
68
69
69
## Query ```sql` ` -> Promise```
70
70
71
-
A query will always return a `Promise` which resolves to either an array `[...]` or `null` depending on the type of query. Destructuring is great to immidiately access the first element.
71
+
A query will always return a `Promise` which resolves to either an array `[...]` or `null` depending on the type of query. Destructuring is great to immediately access the first element.
72
72
73
73
```js
74
74
@@ -87,7 +87,7 @@ const [new_user] = await sql`
87
87
88
88
#### Query parameters
89
89
90
-
Parameters are automatically inferred and handled by Postgres so that SQL injection isn't possible. No special handling is necessarry, simply use JS tagged template literals as usual.
90
+
Parameters are automatically inferred and handled by Postgres so that SQL injection isn't possible. No special handling is necessary, simply use JS tagged template literals as usual.
91
91
92
92
```js
93
93
@@ -123,7 +123,7 @@ await sql`
123
123
124
124
## Listen and notify
125
125
126
-
When you call listen, a dedicated connection will automatically be made to ensure that you receive notifications in realtime. This connection will be used for any further calls to listen.
126
+
When you call listen, a dedicated connection will automatically be made to ensure that you receive notifications in real time. This connection will be used for any further calls to listen.
127
127
128
128
```js
129
129
@@ -382,7 +382,7 @@ sql.unsafe('select ' + danger + ' from users where id = ' + dragons)
382
382
383
383
## Errors
384
384
385
-
Errors are all thrown to related queries and never globally. Errors comming from Postgres itself are always in the [native Postgres format](https://www.postgresql.org/docs/current/errcodes-appendix.html), and the same goes for any [Node.js errors](https://nodejs.org/api/errors.html#errors_common_system_errors) eg. coming from the underlying connection.
385
+
Errors are all thrown to related queries and never globally. Errors coming from Postgres itself are always in the [native Postgres format](https://www.postgresql.org/docs/current/errcodes-appendix.html), and the same goes for any [Node.js errors](https://nodejs.org/api/errors.html#errors_common_system_errors) eg. coming from the underlying connection.
386
386
387
387
There are also the following errors specifically for this library.
388
388
@@ -399,7 +399,7 @@ The postgres protocol doesn't allow more than 65534 (16bit) parameters. If you r
399
399
##### SASL_SIGNATURE_MISMATCH
400
400
> Message type X not supported
401
401
402
-
When using SASL authentication the server responds with a signature at the end of the authentication flow which needs to match the one on the client. This is to avoid [man in the middle attacks](https://en.wikipedia.org/wiki/Man-in-the-middle_attack). If you receive this error the connection was canceled because the server did not reply with the expected signature.
402
+
When using SASL authentication the server responds with a signature at the end of the authentication flow which needs to match the one on the client. This is to avoid [man in the middle attacks](https://en.wikipedia.org/wiki/Man-in-the-middle_attack). If you receive this error the connection was cancelled because the server did not reply with the expected signature.
0 commit comments