11# Node-oracledb Examples
22
3- This directory contains [ node-oracledb] ( https://www.npmjs.com/package/oracledb ) examples.
3+ This directory contains [ node-oracledb] ( https://www.npmjs.com/package/oracledb )
4+ examples. Documentation is [ here
5+ ] ( https://oracle.github.io/node-oracledb/doc/api.html ) .
46
57To run the examples:
68
79- [ Install node-oracledb] ( https://oracle.github.io/node-oracledb/INSTALL.html#quickstart ) .
810
9-
10- - Edit ` dbconfig.js ` and set your username, password and the database
11- connection string, for example:
11+ - Edit ` dbconfig.js ` and set your username and the database connection string,
12+ for example:
1213
1314 ```
1415 module.exports = {
@@ -19,9 +20,8 @@ connection string, for example:
1920
2021 ```
2122
22- This reads the password from the environment variable
23- ` NODE_ORACLEDB_PASSWORD ` , which you must set before running
24- examples.
23+ - In a terminal window, set the environment variable ` NODE_ORACLEDB_PASSWORD ` to
24+ the value of your database password.
2525
2626- Review the samples and then run them like:
2727
@@ -58,8 +58,7 @@ File Name | Description
5858[ ` dbmsoutputpipe.js ` ] ( dbmsoutputpipe.js ) | Show fetching DBMS_OUTPUT by using a pipelined table
5959[ ` demodrop.js ` ] ( demodrop.js ) | Drops the schema objects created by the examples
6060[ ` demosetup.js ` ] ( demosetup.js ) | Used to create common schema objects for the examples
61- [ ` dmlrupd1.js ` ] ( dmlrupd1.js ) | Example of DML RETURNING with a single row match
62- [ ` dmlrupd2.js ` ] ( dmlrupd2.js ) | Example of DML RETURNING where multiple rows are matched
61+ [ ` dmlrupd.js ` ] ( dmlrupd.js ) | Example of DML RETURNING where multiple rows are matched
6362[ ` em_batcherrors.js ` ] ( em_batcherrors.js ) | ` executeMany() ` example showing handling data errors
6463[ ` em_dmlreturn1.js ` ] ( em_dmlreturn1.js ) | ` executeMany() ` example of DML RETURNING that returns single values
6564[ ` em_dmlreturn2.js ` ] ( em_dmlreturn2.js ) | ` executeMany() ` example of DML RETURNING that returns multiple values
@@ -73,6 +72,7 @@ File Name | Description
7372[ ` impres.js ` ] ( impres.js ) | Shows PL/SQL 'Implict Results' returning multiple query results from PL/SQL code.
7473[ ` insert1.js ` ] ( insert1.js ) | Basic example creating a table and inserting data. Shows DDL and DML
7574[ ` insert2.js ` ] ( insert2.js ) | Basic example showing auto commit behavior
75+ [ ` lastinsertid.js ` ] ( lastinsertid.js ) | Shows inserting a row and getting its ROWID.
7676[ ` lobbinds.js ` ] ( lobbinds.js ) | Demonstrates how to bind and query LOBs
7777[ ` lobinsert1.js ` ] ( lobinsert1.js ) | Shows inserting a file into a CLOB column
7878[ ` lobinsert2.js ` ] ( lobinsert2.js ) | Inserts text into a CLOB column using the RETURNING INTO method.
@@ -97,7 +97,7 @@ File Name | Description
9797[ ` select1.js ` ] ( select1.js ) | Executes a basic query without using a connection pool or ResultSet
9898[ ` select2.js ` ] ( select2.js ) | Executes queries to show array and object output formats
9999[ ` selectgeometry.js ` ] ( selectgeometry.js ) | Insert and query Oracle Spatial geometries
100- [ ` selectjson.js ` ] ( selectjson.js ) | Shows some JSON features of Oracle Database
100+ [ ` selectjson.js ` ] ( selectjson.js ) | Shows some JSON features of Oracle Database 21c
101101[ ` selectjsonblob.js ` ] ( selectjsonblob.js ) | Shows how to use a BLOB as a JSON column store
102102[ ` selectobject.js ` ] ( selectobject.js ) | Insert and query a named Oracle database object
103103[ ` selectnestedcursor.js ` ] ( selectnestedcursor.js ) | Shows selecting from a nested cursor
@@ -108,4 +108,4 @@ File Name | Description
108108[ ` sessiontagging2.js ` ] ( sessiontagging2.js ) | More complex example of pooled connection tagging for setting session state
109109[ ` soda1.js ` ] ( soda1.js ) | Basic Simple Oracle Document Access (SODA) example
110110[ ` version.js ` ] ( version.js ) | Shows the node-oracledb version attributes
111- [ ` webappawait .js` ] ( webappawait .js) | A simple web application using a connection pool
111+ [ ` webapp .js` ] ( webapp .js) | A simple web application using a connection pool
0 commit comments