brianc / node-pg-pool

A connection pool for node-postgres
MIT License
180 stars 64 forks source link

add pool.finish() function to process all pending queries before shutting down #133

Open ghost opened 5 years ago

ghost commented 5 years ago

fix #132

more useful than only processing the current active connection queries with end() is to finish processing all current pending queries before shutting down and calling the callback, so add function finish()