A JavaScript (Node.js) library for communicating with Db2 for IBM i, with support for queries, procedures, and much more. Uses traditional callback-style syntax
MIT License
38
stars
23
forks
source link
feat: Have dbconn.close() disconnect if connected #106
Currently to close the connection we need to run [dbconn.disconn]() before running [dbconn.close]().
Calling
dbconn.close
without callingdbconn.disconn
leads to the following error:I propose we add check within dbconn.close if its connected then disconnect.