node-oracledb/examples
Christopher Jones 5b6b9f3116 Add connection.tag property for connection retagging 2019-01-09 13:27:13 +11:00
..
README.md Replace another reference to the older basic example 2018-11-26 15:01:33 +11:00
blobhttp.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
calltimeout.js Change file permissions 2018-11-15 16:04:34 +11:00
clobexample.txt Move more links to http://oracle.github.io/node-oracledb/ 2018-03-27 16:12:28 +11:00
connect.js Add connectionpool.js example 2018-11-26 15:01:33 +11:00
connectionpool.js Improve pool shutdown examples 2019-01-09 13:22:31 +11:00
cqn1.js Show use of binds in a CQN example 2018-05-30 11:54:42 +10:00
cqn2.js Add Continuous Query Notification (CQN) support 2018-05-30 11:18:42 +10:00
date.js Remove trailing whitespace 2017-06-14 12:42:45 +10:00
dbconfig.js Update doc links to point to new gh-pages site https://oracle.github.io/node-oracledb/ 2018-03-27 16:11:29 +11:00
dbmsoutputgetline.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
dbmsoutputpipe.js Fix lint warnings/whitespace/formatting of some examples 2017-10-23 13:12:26 +11:00
demo.sql Drop demo table for idempotency 2018-06-27 16:53:55 +10:00
demodrop.sql Add Continuous Query Notification (CQN) support 2018-05-30 11:18:42 +10:00
dmlrupd1.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
dmlrupd2.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
em_batcherrors.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
em_batcherrors_aa.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
em_dmlreturn1.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
em_dmlreturn1_aa.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
em_dmlreturn2.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
em_dmlreturn2_aa.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
em_insert1.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
em_insert1_aa.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
em_insert2.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
em_insert2_aa.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
em_plsql.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
em_plsql_aa.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
em_rowcounts.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
em_rowcounts_aa.js Add connection.executeMany() for batch statement execution 2018-03-27 17:05:27 +11:00
endtoend.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
example.js Add connectionpool.js example 2018-11-26 15:01:33 +11:00
fetchinfo.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
fuzzydinosaur.jpg Update examples for node-oracledb 1.0 2015-08-17 16:03:41 +10:00
insert1.js Advertise executeMany() 2018-08-22 13:24:13 +10:00
insert2.js Improve wording (see #993) 2018-11-15 16:12:42 +11:00
lobbinds.js Remove potential for double callback on error 2017-10-23 13:10:37 +11:00
lobinsert1.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
lobinsert2.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
lobinserttemp.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
lobplsqltemp.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
lobselect.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
lobstream1.js Always print event trace, similar to other examples 2017-10-23 13:25:59 +11:00
lobstream2.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
metadata.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
plsqlarray.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
plsqlfunc.js Mention PL/SQL named param syntax. See issue #420 2018-03-27 16:29:08 +11:00
plsqlproc.js Mention PL/SQL named param syntax. See issue #420 2018-03-27 16:29:08 +11:00
promises.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
raw1.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
refcursor.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
refcursortoquerystream.js Make sure querystream "close" event is the last event emitted 2018-02-06 14:04:01 +11:00
resultset1.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
resultset2.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
resultsettoquerystream.js Typos: too many n's in connection 2019-01-09 13:23:17 +11:00
rowlimit.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
select1.js Add connectionpool.js example 2018-11-26 15:01:33 +11:00
select2.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
selectjson.js Use new documentation version-independent links 2018-08-22 13:14:25 +10:00
selectjsonblob.js Use new documentation version-independent links 2018-08-22 13:14:25 +10:00
selectstream.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
sessionfixup.js Add connection.tag property for connection retagging 2019-01-09 13:27:13 +11:00
sessiontagging1.js Add connection.tag property for connection retagging 2019-01-09 13:27:13 +11:00
sessiontagging2.js Add connection.tag property for connection retagging 2019-01-09 13:27:13 +11:00
soda1.js SODA requires Oracle DB and Client 18.3 2018-09-29 08:13:41 +10:00
version.js Standardize some example syntax 2018-03-27 16:04:27 +11:00
webapp.js Improve pool shutdown examples 2019-01-09 13:22:31 +11:00
webappawait.js Improve pool shutdown examples 2019-01-09 13:22:31 +11:00
webapppromises.js Improve pool shutdown examples 2019-01-09 13:22:31 +11:00

README.md

Node-oracledb Examples

This directory contains node-oracledb examples.

To run the examples:

  • Install node-oracledb.

  • 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 example.js
    
  • Some example require schema objects created by demo.sql. For example, to load them in the HR schema run:

    sqlplus hr/welcome@localhost/orclpdb @demo.sql
    

    The demonstration objects can be dropped with demodrop.sql:

    sqlplus hr/welcome@localhost/orclpdb @demodrop.sql