Oracle Magazine, July/August 2018
Database Developer OPEN SOURCE And now add the following try block within the startup function just before the existing try block that starts the web server ORACLE MAGAZINE JULY AUGUST 2018 88 try console log Initializing database module await database initialize catch err console error err process exit 1 Non zero failure code existing try block in startup here At this point you can install node oracledb and test the code so far Run the following commands in the terminal from the hr_ app directory npm install oracledb s node If you see messages indicating that the database module and the web server started up congratulations you now have a connection pool running Ill show you that its working in the last part of this article but before that you need to add some code to make the application shut down cleanly
You must have JavaScript enabled to view digital editions.