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
Thank you . I will surely add some feature request especially connection pooling.
Regarding the close method, I understand close is async. Isn't conn a promise. Could you please explain a bit more.
I am just trying to check whether conn is already closed before actually calling close method
Hi, i am not on a computer now but i can tell, you have to put isClosed method inside a promise handle. See the example link above. Like close().then( (con)=> { if con.isClosed() ...
Also, if you tell me what are you doing in overall i can help you more.
Hi
isClosed method on connection is always returning false.
sample code
db.newConnection() .then(conn => { console.log("createst in getProcessDate"); conngbl=conn; if(!conn.isClosed()){ console.log("test close"); conn.close(); if(!conn.isClosed()){ console.log("test close"); conn.close(); } } }
result:
test close
test close
The text was updated successfully, but these errors were encountered: