-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
With a client we can use the "row" event of a query.
client.query("select id from table").on("row", row => console.log(row))
{ id: 1 }
{ id: 2 }
{ id: 3 }
{ id: 4 }
{ id: 5 }
But with a pool we can't do this.
pool.query("select id from table").on("row", row => console.log(row))
TypeError: pool.query(...).on is not a function
Is it possible to use the query events with pool?
vitaly-t, lebreRafael, haoliangyu and bluenote10
Metadata
Metadata
Assignees
Labels
No labels