Skip to content

Commit a50ed0c

Browse files
committed
docs update.
1 parent baff801 commit a50ed0c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -931,9 +931,10 @@ mostly needed by smaller and simplified [Conformant Implementations](https://pro
931931
932932
## Library de-initialization
933933
934-
When exiting your application, you can make the following call:
935-
```javascript
936-
pgp.end();
934+
When exiting your application, you can optionally call [pgp.end]:
935+
936+
```js
937+
pgp.end(); // terminate the database connection pool
937938
```
938939
939940
This will release [pg] connection pool globally and make sure that the process terminates without any delay.
@@ -974,6 +975,7 @@ DEALINGS IN THE SOFTWARE.
974975
[QueryResultError]:http://vitaly-t.github.io/pg-promise/QueryResultError.html
975976
[Native Bindings]:https://github.com/brianc/node-postgres#native-bindings
976977
[Initialization Options]:#advanced
978+
[pgp.end]:http://vitaly-t.github.io/pg-promise/module-pg-promise.html#~end
977979
[pgp.as]:http://vitaly-t.github.io/pg-promise/formatting.html
978980
[as.value]:http://vitaly-t.github.io/pg-promise/formatting.html#.value
979981
[as.format]:http://vitaly-t.github.io/pg-promise/formatting.html#.format

0 commit comments

Comments
 (0)