File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -931,9 +931,10 @@ mostly needed by smaller and simplified [Conformant Implementations](https://pro
931
931
932
932
## Library de-initialization
933
933
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
937
938
` ` `
938
939
939
940
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.
974
975
[QueryResultError]:http://vitaly-t.github.io/pg-promise/QueryResultError.html
975
976
[Native Bindings]:https://github.com/brianc/node-postgres#native-bindings
976
977
[Initialization Options]:#advanced
978
+ [pgp.end]:http://vitaly-t.github.io/pg-promise/module-pg-promise.html#~end
977
979
[pgp.as]:http://vitaly-t.github.io/pg-promise/formatting.html
978
980
[as.value]:http://vitaly-t.github.io/pg-promise/formatting.html#.value
979
981
[as.format]:http://vitaly-t.github.io/pg-promise/formatting.html#.format
You can’t perform that action at this time.
0 commit comments