@@ -8,7 +8,7 @@ To run the examples:
88
99
1010- Edit ` dbconfig.js ` and set your username, password and the database
11- connection string:
11+ connection string, for example :
1212
1313 ```
1414 module.exports = {
@@ -23,95 +23,88 @@ connection string:
2323 ` NODE_ORACLEDB_PASSWORD ` , which you must set before running
2424 examples.
2525
26- - Then run the samples like:
26+ - Review the samples and then run them like:
2727
2828 ```
2929 node example.js
3030 ```
3131
32- - Some examples require schema objects created by ` demo.sql ` . For
33- example, to load them in the HR schema run:
32+ - After running example, the demonstration objects can be dropped with ` demodrop.js ` :
3433
3534 ```
36- sqlplus hr/welcome@localhost/orclpdb1 @demo.sql
37- ```
38-
39- The demonstration objects can be dropped with ` demodrop.sql ` :
40-
41- ```
42- sqlplus hr/welcome@localhost/orclpdb1 @demodrop.sql
35+ node demodrop.js
4336 ```
4437
4538## Example Overview
4639
4740If this is your first time with node-oracledb, start with
4841[ ` example.js ` ] ( example.js ) .
4942
50- File Name | Description
51- ----------------------------|----------------------------------------------------------------------------------
52- aqoptions .js | Oracle Advanced Queuing (AQ) example setting options and message attributes
53- aqmulti .js | Oracle Advanced Queuing (AQ) example passing multiple messages
54- aqobject .js | Oracle Advanced Queuing (AQ) example passing an Oracle Database object
55- aqraw.js | Basic Oracle Advanced Queuing (AQ) example passing text messages
56- blobhttp.js | Simple web app that streams an image
57- calltimeout.js | Shows how to cancel a SQL statement if it doesn't complete in a specified time
58- connect.js | Basic example for creating a standalone (non-pooled) connection
59- connectionpool.js | Basic example creating a pool of connections
60- cqn1.js | Basic Continuous Query Notification (CQN) example
61- cqn2.js | Continuous Query Notification with notification grouping
62- date.js | Show some DATE and TIMESTAMP behaviors
63- dbconfig.js | Common file used by examples for setting connection credentials
64- dbmsoutputgetline.js | Show fetching DBMS_OUTPUT by binding buffers
65- dbmsoutputpipe.js | Show fetching DBMS_OUTPUT by using a pipelined table
66- demo.sql | SQL script to create extra schema objects for the examples
67- demodrop.sql | SQL script to drop the extra schema objects for the examples
68- dmlrupd1.js | Example of DML RETURNING with a single row match
69- dmlrupd2.js | Example of DML RETURNING where multiple rows are matched
70- em_batcherrors.js | ` executeMany() ` example showing handling data errors
71- em_dmlreturn1.js | ` executeMany() ` example of DML RETURNING that returns single values
72- em_dmlreturn2.js | ` executeMany() ` example of DML RETURNING that returns multiple values
73- em_insert1.js | Array DML example using ` executeMany() ` with bind-by-name syntax
74- em_insert2.js | Array DML example using ` executeMany() ` with bind by position
75- em_plsql.js | ` executeMany() ` example calling PL/SQL multiple times with one call
76- em_rowcounts.js | ` executeMany() ` example showing how to find the number of rows affected by each input row
77- endtoend.js | Example showing setting tracing attributes
78- example.js | Basic example showing creating a table, inserting multiple rows, and querying rows
79- fetchinfo.js | Show how numbers and dates can be returned as strings using ` fetchAsString ` and ` fetchInfo `
80- impres.js | Shows PL/SQL 'Implict Results' returning multiple query results from PL/SQL code.
81- insert1.js | Basic example creating a table and inserting data. Shows DDL and DML
82- insert2.js | Basic example showing auto commit behavior
83- lobbinds.js | Demonstrates how to bind and query LOBs
84- lobinsert1.js | Shows inserting a file into a CLOB column
85- lobinsert2.js | Inserts text into a CLOB column using the RETURNING INTO method.
86- lobinserttemp.js | Writes data to a Temporary CLOB and then inserts it into the database
87- lobplsqltemp.js | Streams data into a Temporary CLOB and then passes it to PL/SQL
88- lobselect.js | Shows basic, non-streaming CLOB and BLOB queries
89- lobstream1.js | Shows how to stream LOBs to files
90- lobstream2.js | Shows using Stream data events to fetch a CLOB
91- metadata.js | Shows the metadata available after executing SELECT statements
92- plsqlarray.js | Examples of binding PL/SQL "INDEX BY" tables
93- plsqlfunc.js | How to call a PL/SQL function
94- plsqlproc.js | How to call a PL/SQL procedure
95- plsqlrecord.js | Shows binding of PL/SQL RECORDS
96- plsqlvarrayrecord.js | Shows binding a VARRAY of RECORD in PL/SQL
97- raw1 .js | Shows using a Buffer to insert and select a RAW
98- refcursor.js | Shows using a ResultSet to fetch rows from a REF CURSOR
99- refcursortoquerystream.js | Converts a REF CURSOR returned from ` execute() ` to a query stream.
100- resultset1.js | Executes a query and uses a ResultSet to fetch rows with ` getRow() `
101- resultset2.js | Executes a query and uses a ResultSet to fetch batches of rows with ` getRows() `
102- resultsettoquerystream.js | Converts a ResultSet returned from ` execute() ` into a Readable Stream.
103- rowlimit.js | Shows ways to limit the number of records fetched by queries
104- select1.js | Executes a basic query without using a connection pool or ResultSet
105- select2.js | Executes queries to show array and object output formats
106- selectgeometry.js | Insert and query Oracle Spatial geometries
107- selectjson.js | Shows some JSON features of Oracle Database
108- selectjsonblob.js | Shows how to use a BLOB as a JSON column store
109- selectobject.js | Insert and query a named Oracle database object
110- selectstream.js | Executes a basic query using a Readable Stream
111- selectvarray.js | Shows inserting and selecting from a VARRAY column
112- sessionfixup.js | Shows a pooled connection callback to efficiently set session state
113- sessiontagging1.js | Simple pooled connection tagging for setting session state
114- sessiontagging2.js | More complex example of pooled connection tagging for setting session state
115- soda1.js | Basic Simple Oracle Document Access (SODA) example
116- version.js | Shows the node-oracledb version attributes
117- webappawait.js | A simple web application using a connection pool
43+ File Name | Description
44+ ---------------------------------------------------------- |----------------------------------------------------------------------------------
45+ [ ` aqmulti .js` ] ( aqmulti.js ) | Oracle Advanced Queuing (AQ) example passing multiple messages
46+ [ ` aqobject .js` ] ( aqobject.js ) | Oracle Advanced Queuing (AQ) example passing an Oracle Database object
47+ [ ` aqoptions .js` ] ( aqoptions.js ) | Oracle Advanced Queuing (AQ) example setting options and message attributes
48+ [ ` aqraw.js ` ] ( aqraw.js ) | Basic Oracle Advanced Queuing (AQ) example passing text messages
49+ [ ` blobhttp.js ` ] ( blobhttp.js ) | Simple web app that streams an image
50+ [ ` calltimeout.js ` ] ( calltimeout.js ) | Shows how to cancel a SQL statement if it doesn't complete in a specified time
51+ [ ` connect.js ` ] ( connect.js ) | Basic example for creating a standalone (non-pooled) connection
52+ [ ` connectionpool.js ` ] ( connectionpool.js ) | Basic example creating a pool of connections
53+ [ ` cqn1.js ` ] ( cqn1.js ) | Basic Continuous Query Notification (CQN) example
54+ [ ` cqn2.js ` ] ( cqn2.js ) | Continuous Query Notification with notification grouping
55+ [ ` date.js ` ] ( date.js ) | Show some DATE and TIMESTAMP behaviors
56+ [ ` dbconfig.js ` ] ( dbconfig.js ) | Common file used by examples for setting connection credentials
57+ [ ` dbmsoutputgetline.js ` ] ( dbmsoutputgetline.js ) | Show fetching DBMS_OUTPUT by binding buffers
58+ [ ` dbmsoutputpipe.js ` ] ( dbmsoutputpipe.js ) | Show fetching DBMS_OUTPUT by using a pipelined table
59+ [ ` demodrop.js ` ] ( demodrop.js ) | Drops the schema objects created by the examples
60+ [ ` 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
63+ [ ` em_batcherrors.js ` ] ( em_batcherrors.js ) | ` executeMany() ` example showing handling data errors
64+ [ ` em_dmlreturn1.js ` ] ( em_dmlreturn1.js ) | ` executeMany() ` example of DML RETURNING that returns single values
65+ [ ` em_dmlreturn2.js ` ] ( em_dmlreturn2.js ) | ` executeMany() ` example of DML RETURNING that returns multiple values
66+ [ ` em_insert1.js ` ] ( em_insert1.js ) | Array DML example using ` executeMany() ` with bind-by-name syntax
67+ [ ` em_insert2.js ` ] ( em_insert2.js ) | Array DML example using ` executeMany() ` with bind by position
68+ [ ` em_plsql.js ` ] ( em_plsql.js ) | ` executeMany() ` example calling PL/SQL multiple times with one call
69+ [ ` em_rowcounts.js ` ] ( em_rowcounts.js ) | ` executeMany() ` example showing how to find the number of rows affected by each input row
70+ [ ` endtoend.js ` ] ( endtoend.js ) | Example showing setting tracing attributes
71+ [ ` example.js ` ] ( example.js ) | Basic example showing creating a table, inserting multiple rows, and querying rows
72+ [ ` fetchinfo.js ` ] ( fetchinfo.js ) | Show how numbers and dates can be returned as strings using ` fetchAsString ` and ` fetchInfo `
73+ [ ` impres.js ` ] ( impres.js ) | Shows PL/SQL 'Implict Results' returning multiple query results from PL/SQL code.
74+ [ ` insert1.js ` ] ( insert1.js ) | Basic example creating a table and inserting data. Shows DDL and DML
75+ [ ` insert2.js ` ] ( insert2.js ) | Basic example showing auto commit behavior
76+ [ ` lobbinds.js ` ] ( lobbinds.js ) | Demonstrates how to bind and query LOBs
77+ [ ` lobinsert1.js ` ] ( lobinsert1.js ) | Shows inserting a file into a CLOB column
78+ [ ` lobinsert2.js ` ] ( lobinsert2.js ) | Inserts text into a CLOB column using the RETURNING INTO method.
79+ [ ` lobinserttemp.js ` ] ( lobinserttemp.js ) | Writes data to a Temporary CLOB and then inserts it into the database
80+ [ ` lobplsqltemp.js ` ] ( lobplsqltemp.js ) | Streams data into a Temporary CLOB and then passes it to PL/SQL
81+ [ ` lobselect.js ` ] ( lobselect.js ) | Shows basic, non-streaming CLOB and BLOB queries
82+ [ ` lobstream1.js ` ] ( lobstream1.js ) | Shows how to stream LOBs to files
83+ [ ` lobstream2.js ` ] ( lobstream2.js ) | Shows using Stream data events to fetch a CLOB
84+ [ ` metadata.js ` ] ( metadata.js ) | Shows the metadata available after executing SELECT statements
85+ [ ` plsqlarray.js ` ] ( plsqlarray.js ) | Examples of binding PL/SQL "INDEX BY" tables
86+ [ ` plsqlfunc.js ` ] ( plsqlfunc.js ) | How to call a PL/SQL function
87+ [ ` plsqlproc.js ` ] ( plsqlproc.js ) | How to call a PL/SQL procedure
88+ [ ` plsqlrecord.js ` ] ( plsqlrecord.js ) | Shows binding of PL/SQL RECORDS
89+ [ ` plsqlvarrayrecord.js ` ] ( plsqlvarrayrecord.js ) | Shows binding a VARRAY of RECORD in PL/SQL
90+ [ ` raw .js` ] ( raw.js ) | Shows using a Buffer to insert and select a RAW
91+ [ ` refcursor.js ` ] ( refcursor.js ) | Shows using a ResultSet to fetch rows from a REF CURSOR
92+ [ ` refcursortoquerystream.js ` ] ( refcursortoquerystream.js ) | Converts a REF CURSOR returned from ` execute() ` to a query stream.
93+ [ ` resultset1.js ` ] ( resultset1.js ) | Executes a query and uses a ResultSet to fetch rows with ` getRow() `
94+ [ ` resultset2.js ` ] ( resultset2.js ) | Executes a query and uses a ResultSet to fetch batches of rows with ` getRows() `
95+ [ ` resultsettoquerystream.js ` ] ( resultsettoquerystream.js ) | Converts a ResultSet returned from ` execute() ` into a Readable Stream.
96+ [ ` rowlimit.js ` ] ( rowlimit.js ) | Shows ways to limit the number of records fetched by queries
97+ [ ` select1.js ` ] ( select1.js ) | Executes a basic query without using a connection pool or ResultSet
98+ [ ` select2.js ` ] ( select2.js ) | Executes queries to show array and object output formats
99+ [ ` selectgeometry.js ` ] ( selectgeometry.js ) | Insert and query Oracle Spatial geometries
100+ [ ` selectjson.js ` ] ( selectjson.js ) | Shows some JSON features of Oracle Database
101+ [ ` selectjsonblob.js ` ] ( selectjsonblob.js ) | Shows how to use a BLOB as a JSON column store
102+ [ ` selectobject.js ` ] ( selectobject.js ) | Insert and query a named Oracle database object
103+ [ ` selectstream.js ` ] ( selectstream.js ) | Executes a basic query using a Readable Stream
104+ [ ` selectvarray.js ` ] ( selectvarray.js ) | Shows inserting and selecting from a VARRAY column
105+ [ ` sessionfixup.js ` ] ( sessionfixup.js ) | Shows a pooled connection callback to efficiently set session state
106+ [ ` sessiontagging1.js ` ] ( sessiontagging1.js ) | Simple pooled connection tagging for setting session state
107+ [ ` sessiontagging2.js ` ] ( sessiontagging2.js ) | More complex example of pooled connection tagging for setting session state
108+ [ ` soda1.js ` ] ( soda1.js ) | Basic Simple Oracle Document Access (SODA) example
109+ [ ` version.js ` ] ( version.js ) | Shows the node-oracledb version attributes
110+ [ ` webappawait.js ` ] ( webappawait.js ) | A simple web application using a connection pool
0 commit comments