Closed res-io closed 7 years ago
Because the module relies on node-pg under the hood and it connects using client pooling, node-pg just handles opening and closing connections automatically so I hadn't really considered adding a close connection function. But it seems like a good thing to have.
What do you think in terms of expected behavior? Disconnect all the clients from the pool?
I am running into the same issue. Connection not been close after query.
@jasonfungsing Two questions.
2.Do you have some sample code to help me reproduce the problem?
Hi I am running into the same issue.
My case is that I wrote an AWS lambda function and after all process done I need to close all connection, otherwise the Lambda function won't be finished and then timeout.
Hey guys,
As of the 0.1.0 release I've added added two new features:
Please look at the new examples/ folder for how to use and close each type of connection. And please let me know if you have more feedback!
is there a way to close the connection somehow?