Skip to content

Commit 7816a14

Browse files
committed
Remove trailing whitespace from examples
1 parent 9c73ac3 commit 7816a14

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

examples/connect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
* connect.js
2020
*
2121
* DESCRIPTION
22-
* Tests a basic connection to the database.
22+
* Tests a basic connection to the database.
2323
* See dbconfig.js for information on connectString formats.
24-
*
24+
*
2525
*****************************************************************************/
2626

2727
var oracledb = require('oracledb');

examples/dbconfig.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
* Holds the credentials used by node-oracledb examples to connect
2323
* to the database. Production applications should consider using
2424
* External Authentication to avoid hard coded credentials.
25-
*
25+
*
2626
* Applications can set the connectString value to an Easy Connect
2727
* string, or a Net Service Name from a tnsnames.ora file or
2828
* external naming service, or it can be the name of a local Oracle
2929
* database instance.
30-
*
30+
*
3131
* If node-oracledb is linked with Instant Client, then an Easy
3232
* Connect string is generally appropriate. The syntax is:
33-
*
33+
*
3434
* [//]host_name[:port][/service_name][:server_type][/instance_name]
35-
*
35+
*
3636
* Commonly just the host_name and service_name are needed
3737
* e.g. "localhost/orcl" or "localhost/XE"
3838
*
@@ -50,7 +50,7 @@
5050
* Wallet so passwords do not need to be hard coded into the
5151
* application. The user and password properties for connecting or
5252
* creating a pool should not be set when externalAuth is true.
53-
*
53+
*
5454
* TROUBLESHOOTING
5555
* Errors like:
5656
* ORA-12541: TNS:no listener

examples/dbmsoutputgetline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* DESCRIPTION
2222
* Displays PL/SQL DBMS_OUTPUT in node-oracledb, fetching one record at a time.
23-
*
23+
*
2424
*****************************************************************************/
2525

2626
var async = require('async');

examples/fetchinfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* fetchinfo.js
2020
*
2121
* DESCRIPTION
22-
* Show how numbers and dates can be returned as strings using fetchAsString
22+
* Show how numbers and dates can be returned as strings using fetchAsString
2323
* and fetchInfo
2424
* Uses Oracle's sample HR schema.
2525
*

examples/insert1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ oracledb.getConnection(
7070
{
7171
if (err) { console.error(err.message); return; }
7272
console.log("Rows updated: " + result.rowsAffected); // 2
73-
73+
7474
connection.execute(
7575
"DROP TABLE test",
7676
function(err)
7777
{
7878
if (err) { console.error(err.message); return; }
7979
console.log("Table dropped");
80-
80+
8181
connection.release(
8282
function(err)
8383
{

examples/plsqlproc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* DESCRIPTION
2222
* Show calling a PL/SQL procedure and binding parameters in various ways
2323
* Use demo.sql to create the required procedure or do:
24-
*
24+
*
2525
* CREATE OR REPLACE PROCEDURE testproc (p_in IN VARCHAR2, p_inout IN OUT VARCHAR2, p_out OUT NUMBER)
2626
* AS
2727
* BEGIN
@@ -56,6 +56,6 @@ oracledb.getConnection(
5656
function (err, result)
5757
{
5858
if (err) { console.error(err.message); return; }
59-
console.log(result.outBinds);
59+
console.log(result.outBinds);
6060
});
6161
});

examples/refcursor.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* Shows using a Result Set to fetch rows from a REF CURSOR
2323
* Uses Oracle's sample HR schema.
2424
* Use demo.sql to create the required procedure or do:
25-
*
25+
*
2626
* CREATE OR REPLACE PROCEDURE get_emp_rs (p_sal IN NUMBER, p_recordset OUT SYS_REFCURSOR)
2727
* AS
2828
* BEGIN
@@ -59,7 +59,7 @@ oracledb.getConnection(
5959
{
6060
if (err) { console.error(err.message); return; }
6161
var bindvars = {
62-
sal: 12000,
62+
sal: 12000,
6363
cursor: { type: oracledb.CURSOR, dir : oracledb.BIND_OUT }
6464
};
6565
connection.execute(
@@ -80,8 +80,8 @@ oracledb.getConnection(
8080
function fetchRowsFromRS(connection, resultSet, numRows)
8181
{
8282
resultSet.getRows( // get numRows rows
83-
numRows,
84-
function (err, rows)
83+
numRows,
84+
function (err, rows)
8585
{
8686
if (err) {
8787
console.log(err);

examples/selectjsonclob.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* Executes a query from a JSON table using CLOB storage.
2323
* Requires Oracle Database 12.1.0.2, which has extensive JSON datatype support.
2424
* See http://docs.oracle.com/database/121/ADXDB/json.htm#CACGCBEG
25-
*
25+
*
2626
* Use demo.sql to create the required table.
2727
*
2828
*****************************************************************************/

0 commit comments

Comments
 (0)