Oracle Magazine, September/October 2017
Database Developer OPEN SOURCE Using the named function technique from the previous magazine article you can refactor the code to eliminate some of the nesting and duplication while making the code a little easier to read and understand although this requires a few additional lines of code ORACLE MAGAZINE SEPTEMBER OCTOBER 2017 52 const oracledb require oracledb const dbConfig user hr password oracle connectString localhost 1521 orcl function getConnection oracledb getConnection dbConfig function err conn if err console log Error getting connection err return console log Connected to database executeQuery conn function executeQuery conn
You must have JavaScript enabled to view digital editions.