This directory contains node-oracledb 2.3 examples.
The node-oracledb add-on for Node.js powers high performance Oracle Database applications.
To run the examples:
-
Use
demo.sqlto create schema objects used by the samples. For example, to load them in the HR schema run:sqlplus hr/welcome@localhost/orclpdb @demo.sql -
Edit
dbconfig.jsand set your username, password and the database connection string:module.exports = { user: "hr", password: "welcome", connectString:"localhost/orclpdb" }; -
Then run the samples like:
node select1.js
The demonstration objects can be dropped with demodrop.sql:
sqlplus hr/welcome@localhost/orclpdb @demodrop.sql