You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// For pool initialization, see abovepool.getConnection(function(conn){// Do something with the connectionconn.query(/* ... */);// Don't forget to release the connection when finished!pool.releaseConnection(conn);})
It should be possible to also call pool.releaseConnection. Currently it says: 'Property 'releaseConnection' does not exist on type 'Pool'.
I don't know if conn.release() is also fine, or should this example be updated on their page (sidorares)?
Correct me if I'm wrong.
Regards,
Melroy
The text was updated successfully, but these errors were encountered:
As described over here: https://github.com/sidorares/node-mysql2
It should be possible to also call
pool.releaseConnection
. Currently it says: 'Property 'releaseConnection' does not exist on type 'Pool'.I don't know if
conn.release()
is also fine, or should this example be updated on their page (sidorares)?Correct me if I'm wrong.
Regards,
Melroy
The text was updated successfully, but these errors were encountered: