Oracle Magazine, Nov/Dec 2017
Database Developer OPEN SOURCE outFormat oracledb OBJECT then result console log Query executed console log result rows catch err console log Error in processing err then if conn conn assignment worked need to close ORACLE MAGAZINE NOVEMBER OCTOBER 2017 58 return conn close then function console log Connection closed catch err console log Error closing connection err Copy the code block above to a new file name the file promises js and run the script with Node js The output should match that of the previous script versions from my last article written with Node js style callbacks and the Async module
You must have JavaScript enabled to view digital editions.