node-oracledb/examples
Christopher Jones 4869896d51 Added support for new attributes "versionString" and "versionSuffix" 2018-02-06 13:17:33 +11:00
..
README.md Add README for examples 2017-12-12 09:42:30 +11:00
blobhttp.js Lint examples 2017-11-17 22:50:42 +11:00
clobexample.txt Update URL to reflect changed OTN hierarchy 2015-11-15 08:28:11 +11:00
connect.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
date.js Remove trailing whitespace 2017-06-14 12:42:45 +10:00
dbconfig.js Change sample defaults and update comment on the driver name in V$ views 2017-08-16 15:12:16 +10: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 Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
demodrop.sql Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
dmlrupd1.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
dmlrupd2.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
endtoend.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
fetchinfo.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
fuzzydinosaur.jpg Update examples for node-oracledb 1.0 2015-08-17 16:03:41 +10:00
insert1.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
insert2.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
lobbinds.js Remove potential for double callback on error 2017-10-23 13:10:37 +11:00
lobinsert1.js Sync examples 2017-06-14 11:56:46 +10:00
lobinsert2.js Remove unnecessary closes 2017-10-23 13:25:34 +11:00
lobinserttemp.js Close lobs explicitly on error to avoid DPI-1054. Avoid double callback on error 2017-10-23 12:23:05 +11:00
lobplsqltemp.js Close lobs explicitly on error to avoid DPI-1054. Avoid double callback on error 2017-10-23 12:23:05 +11:00
lobselect.js Sync examples 2017-06-14 11:56:46 +10:00
lobstream1.js Always print event trace, similar to other examples 2017-10-23 13:25:59 +11:00
lobstream2.js Close lobs explicitly on error to avoid DPI-1054. Avoid double callback on error 2017-10-23 12:23:05 +11:00
metadata.js Sync examples 2017-06-14 11:56:46 +10:00
plsqlarray.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
plsqlfunc.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
plsqlproc.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10: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 Implementation of resultSet.getRow() buffering in JavaScript instead of C++. 2017-12-12 10:03:15 +11:00
refcursortoquerystream.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
resultset1.js Implementation of resultSet.getRow() buffering in JavaScript instead of C++. 2017-12-12 10:03:15 +11:00
resultset2.js Implementation of resultSet.getRow() buffering in JavaScript instead of C++. 2017-12-12 10:03:15 +11:00
resultsettoquerystream.js Introduce fetchArraySize to replace prefetchRows for query fetch tuning 2017-12-12 09:56:12 +11:00
rowlimit.js Implementation of resultSet.getRow() buffering in JavaScript instead of C++. 2017-12-12 10:03:15 +11:00
select1.js Introduce fetchArraySize to replace prefetchRows for query fetch tuning 2017-12-12 09:56:12 +11:00
select2.js Implementation of resultSet.getRow() buffering in JavaScript instead of C++. 2017-12-12 10:03:15 +11:00
selectjson.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
selectjsonblob.js Sync examples 2017-06-14 11:56:46 +10:00
selectstream.js Implementation of resultSet.getRow() buffering in JavaScript instead of C++. 2017-12-12 10:03:15 +11:00
version.js Added support for new attributes "versionString" and "versionSuffix" 2018-02-06 13:17:33 +11:00
webapp.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00
webapppromises.js Sync examples with master and update for v2 2017-06-14 11:23:10 +10:00

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