[pg-query-stream] pooled clients don't end, they release

This commit is contained in:
Chris Reeves
2018-01-30 04:59:15 -05:00
parent 429ba7aab3
commit 7c0d23a048
@@ -12,7 +12,7 @@ const pool = new pg.Pool();
pool.connect((err, client, done) => {
const stream = client.query(query);
stream.on('end', () => {
client.end();
client.release();
});
stream.on('data', (data: any) => {
console.log(data);