I have written a query to select rows in table using seriate, now the query is able to fetch the results but the command is not exiting unless I do ctrl + c in the git bash window.
Is there anyway to close the connection and come out of the session once the insert query is successful?
The trick was to use sql.closeConnection()
after getting the results. Found it by trying the steps in interactive mode - node REPL.