mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
[pg-query-stream] pooled clients don't end, they release
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user