Skip to content

Commit 936b22e

Browse files
committed
Fix README typos
1 parent bc8f6f2 commit 936b22e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ More info for the `ssl` option can be found in the [Node.js docs for tls connect
6868

6969
## Query ```sql` ` -> Promise```
7070

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.
7272

7373
```js
7474

@@ -87,7 +87,7 @@ const [new_user] = await sql`
8787

8888
#### Query parameters
8989

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.
9191

9292
```js
9393

@@ -123,7 +123,7 @@ await sql`
123123

124124
## Listen and notify
125125

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.
127127

128128
```js
129129

@@ -382,7 +382,7 @@ sql.unsafe('select ' + danger + ' from users where id = ' + dragons)
382382

383383
## Errors
384384

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.
386386

387387
There are also the following errors specifically for this library.
388388

@@ -399,7 +399,7 @@ The postgres protocol doesn't allow more than 65534 (16bit) parameters. If you r
399399
##### SASL_SIGNATURE_MISMATCH
400400
> Message type X not supported
401401
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.
403403

404404
##### NOT_TAGGED_CALL
405405
> Query not called as a tagged template literal

0 commit comments

Comments
 (0)