Permalink
..
Failed to load latest commit information.
README.md Update doc links to point to new gh-pages site https://oracle.github.… Mar 27, 2018
blobhttp.js Standardize some example syntax Mar 27, 2018
clobexample.txt Move more links to http://oracle.github.io/node-oracledb/ Mar 27, 2018
connect.js Standardize some example syntax Mar 27, 2018
cqn1.js Show use of binds in a CQN example May 30, 2018
cqn2.js Add Continuous Query Notification (CQN) support May 30, 2018
date.js Remove trailing whitespace Jun 14, 2017
dbconfig.js Update doc links to point to new gh-pages site https://oracle.github.… Mar 27, 2018
dbmsoutputgetline.js Sync examples with master and update for v2 Jun 14, 2017
dbmsoutputpipe.js Fix lint warnings/whitespace/formatting of some examples Oct 23, 2017
demo.sql Drop demo table for idempotency Jun 27, 2018
demodrop.sql Add Continuous Query Notification (CQN) support May 30, 2018
dmlrupd1.js Standardize some example syntax Mar 27, 2018
dmlrupd2.js Standardize some example syntax Mar 27, 2018
em_batcherrors.js Add connection.executeMany() for batch statement execution Mar 27, 2018
em_batcherrors_aa.js Add connection.executeMany() for batch statement execution Mar 27, 2018
em_dmlreturn1.js Add connection.executeMany() for batch statement execution Mar 27, 2018
em_dmlreturn1_aa.js Add connection.executeMany() for batch statement execution Mar 27, 2018
em_dmlreturn2.js Add connection.executeMany() for batch statement execution Mar 27, 2018
em_dmlreturn2_aa.js Add connection.executeMany() for batch statement execution Mar 27, 2018
em_insert1.js Add connection.executeMany() for batch statement execution Mar 27, 2018
em_insert1_aa.js Add connection.executeMany() for batch statement execution Mar 27, 2018
em_insert2.js Add connection.executeMany() for batch statement execution Mar 27, 2018
em_insert2_aa.js Add connection.executeMany() for batch statement execution Mar 27, 2018
em_plsql.js Add connection.executeMany() for batch statement execution Mar 27, 2018
em_plsql_aa.js Add connection.executeMany() for batch statement execution Mar 27, 2018
em_rowcounts.js Add connection.executeMany() for batch statement execution Mar 27, 2018
em_rowcounts_aa.js Add connection.executeMany() for batch statement execution Mar 27, 2018
endtoend.js Standardize some example syntax Mar 27, 2018
fetchinfo.js Standardize some example syntax Mar 27, 2018
fuzzydinosaur.jpg Update examples for node-oracledb 1.0 Aug 17, 2015
insert1.js Standardize some example syntax Mar 27, 2018
insert2.js Standardize some example syntax Mar 27, 2018
lobbinds.js Remove potential for double callback on error Oct 23, 2017
lobinsert1.js Standardize some example syntax Mar 27, 2018
lobinsert2.js Standardize some example syntax Mar 27, 2018
lobinserttemp.js Standardize some example syntax Mar 27, 2018
lobplsqltemp.js Standardize some example syntax Mar 27, 2018
lobselect.js Standardize some example syntax Mar 27, 2018
lobstream1.js Always print event trace, similar to other examples Oct 23, 2017
lobstream2.js Standardize some example syntax Mar 27, 2018
metadata.js Standardize some example syntax Mar 27, 2018
plsqlarray.js Sync examples with master and update for v2 Jun 14, 2017
plsqlfunc.js Mention PL/SQL named param syntax. See issue #420 Mar 27, 2018
plsqlproc.js Mention PL/SQL named param syntax. See issue #420 Mar 27, 2018
promises.js Sync examples with master and update for v2 Jun 14, 2017
raw1.js Sync examples with master and update for v2 Jun 14, 2017
refcursor.js Standardize some example syntax Mar 27, 2018
refcursortoquerystream.js Make sure querystream "close" event is the last event emitted Feb 6, 2018
resultset1.js Standardize some example syntax Mar 27, 2018
resultset2.js Standardize some example syntax Mar 27, 2018
resultsettoquerystream.js Standardize some example syntax Mar 27, 2018
rowlimit.js Standardize some example syntax Mar 27, 2018
select1.js Standardize some example syntax Mar 27, 2018
select2.js Standardize some example syntax Mar 27, 2018
selectjson.js Show JSON examples with 12.2's easier dot notation Mar 27, 2018
selectjsonblob.js Show JSON examples with 12.2's easier dot notation Mar 27, 2018
selectstream.js Standardize some example syntax Mar 27, 2018
version.js Standardize some example syntax Mar 27, 2018
webapp.js Add oracledb.events Mar 27, 2018
webapppromises.js Add oracledb.events Mar 27, 2018

README.md

Node-oracledb Examples

This directory contains node-oracledb examples.

To run the examples:

  • Install node-oracledb.

  • Use demo.sql to 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.js and 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