Skip to content

Commit 38bfba5

Browse files
committed
Update the examples to include macOS ARM
1 parent 8f41c9c commit 38bfba5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+395
-399
lines changed

examples/aqmulti.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2019, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2019, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -45,16 +45,16 @@ const aqUtil = require('./aqutil.js');
4545
// This example requires node-oracledb Thick mode.
4646
//
4747
// Thick mode requires Oracle Client or Oracle Instant Client libraries. On
48-
// Windows and macOS Intel you can specify the directory containing the
48+
// Windows and macOS you can specify the directory containing the
4949
// libraries at runtime or before Node.js starts. On other platforms (where
5050
// Oracle libraries are available) the system library search path must always
5151
// include the Oracle library path before Node.js starts. If the search path
5252
// is not correct, you will get a DPI-1047 error. See the node-oracledb
5353
// installation documentation.
5454
let clientOpts = {};
55-
// On Windows and macOS Intel platforms, set the environment
56-
// variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
57-
if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) {
55+
// On Windows and macOS platforms, set the environment variable
56+
// NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
57+
if (process.platform === 'win32' || process.platform === 'darwin') {
5858
clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
5959
}
6060
oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode

examples/aqobject.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2019, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2019, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -45,16 +45,16 @@ const aqUtil = require('./aqutil.js');
4545
// This example requires node-oracledb Thick mode.
4646
//
4747
// Thick mode requires Oracle Client or Oracle Instant Client libraries. On
48-
// Windows and macOS Intel you can specify the directory containing the
48+
// Windows and macOS you can specify the directory containing the
4949
// libraries at runtime or before Node.js starts. On other platforms (where
5050
// Oracle libraries are available) the system library search path must always
5151
// include the Oracle library path before Node.js starts. If the search path
5252
// is not correct, you will get a DPI-1047 error. See the node-oracledb
5353
// installation documentation.
5454
let clientOpts = {};
55-
// On Windows and macOS Intel platforms, set the environment
56-
// variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
57-
if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) {
55+
// On Windows and macOS platforms, set the environment variable
56+
// NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
57+
if (process.platform === 'win32' || process.platform === 'darwin') {
5858
clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
5959
}
6060
oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode

examples/aqoptions.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2019, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2019, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -45,16 +45,16 @@ const aqUtil = require('./aqutil.js');
4545
// This example requires node-oracledb Thick mode.
4646
//
4747
// Thick mode requires Oracle Client or Oracle Instant Client libraries. On
48-
// Windows and macOS Intel you can specify the directory containing the
48+
// Windows and macOS you can specify the directory containing the
4949
// libraries at runtime or before Node.js starts. On other platforms (where
5050
// Oracle libraries are available) the system library search path must always
5151
// include the Oracle library path before Node.js starts. If the search path
5252
// is not correct, you will get a DPI-1047 error. See the node-oracledb
5353
// installation documentation.
5454
let clientOpts = {};
55-
// On Windows and macOS Intel platforms, set the environment
56-
// variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
57-
if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) {
55+
// On Windows and macOS platforms, set the environment variable
56+
// NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
57+
if (process.platform === 'win32' || process.platform === 'darwin') {
5858
clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
5959
}
6060
oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode

examples/aqraw.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2019, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2019, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -45,16 +45,16 @@ const aqUtil = require('./aqutil.js');
4545
// This example requires node-oracledb Thick mode.
4646
//
4747
// Thick mode requires Oracle Client or Oracle Instant Client libraries. On
48-
// Windows and macOS Intel you can specify the directory containing the
48+
// Windows and macOS you can specify the directory containing the
4949
// libraries at runtime or before Node.js starts. On other platforms (where
5050
// Oracle libraries are available) the system library search path must always
5151
// include the Oracle library path before Node.js starts. If the search path
5252
// is not correct, you will get a DPI-1047 error. See the node-oracledb
5353
// installation documentation.
5454
let clientOpts = {};
55-
// On Windows and macOS Intel platforms, set the environment
56-
// variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
57-
if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) {
55+
// On Windows and macOS platforms, set the environment variable
56+
// NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
57+
if (process.platform === 'win32' || process.platform === 'darwin') {
5858
clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
5959
}
6060
oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode

examples/azureConfigProvider.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ const oracledb = require('oracledb');
4444
if (process.env.NODE_ORACLEDB_DRIVER_MODE === 'thick') {
4545

4646
// Thick mode requires Oracle Client or Oracle Instant Client libraries.
47-
// On Windows and macOS Intel you can specify the directory containing the
47+
// On Windows and macOS you can specify the directory containing the
4848
// libraries at runtime or before Node.js starts. On other platforms (where
4949
// Oracle libraries are available) the system library search path must always
5050
// include the Oracle library path before Node.js starts. If the search path
5151
// is not correct, you will get a DPI-1047 error. See the node-oracledb
5252
// installation documentation.
5353
let clientOpts = {};
54-
// On Windows and macOS Intel platforms, set the environment
55-
// variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
56-
if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) {
54+
// On Windows and macOS platforms, set the environment variable
55+
// NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
56+
if (process.platform === 'win32' || process.platform === 'darwin') {
5757
clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
5858
}
5959
oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode

examples/blobhttp.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2015, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2015, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -50,16 +50,16 @@ const demoSetup = require('./demosetup.js');
5050
if (process.env.NODE_ORACLEDB_DRIVER_MODE === 'thick') {
5151

5252
// Thick mode requires Oracle Client or Oracle Instant Client libraries.
53-
// On Windows and macOS Intel you can specify the directory containing the
53+
// On Windows and macOS you can specify the directory containing the
5454
// libraries at runtime or before Node.js starts. On other platforms (where
5555
// Oracle libraries are available) the system library search path must always
5656
// include the Oracle library path before Node.js starts. If the search path
5757
// is not correct, you will get a DPI-1047 error. See the node-oracledb
5858
// installation documentation.
5959
let clientOpts = {};
60-
// On Windows and macOS Intel platforms, set the environment
61-
// variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
62-
if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) {
60+
// On Windows and macOS platforms, set the environment variable
61+
// NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
62+
if (process.platform === 'win32' || process.platform === 'darwin') {
6363
clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
6464
}
6565
oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode

examples/calltimeout.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2018, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2018, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -49,16 +49,16 @@ const dbConfig = require('./dbconfig.js');
4949
if (process.env.NODE_ORACLEDB_DRIVER_MODE === 'thick') {
5050

5151
// Thick mode requires Oracle Client or Oracle Instant Client libraries.
52-
// On Windows and macOS Intel you can specify the directory containing the
52+
// On Windows and macOS you can specify the directory containing the
5353
// libraries at runtime or before Node.js starts. On other platforms (where
5454
// Oracle libraries are available) the system library search path must always
5555
// include the Oracle library path before Node.js starts. If the search path
5656
// is not correct, you will get a DPI-1047 error. See the node-oracledb
5757
// installation documentation.
5858
let clientOpts = {};
59-
// On Windows and macOS Intel platforms, set the environment
60-
// variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
61-
if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) {
59+
// On Windows and macOS platforms, set the environment variable
60+
// NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
61+
if (process.platform === 'win32' || process.platform === 'darwin') {
6262
clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
6363
}
6464
oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode

examples/connect.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2015, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2015, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -46,16 +46,16 @@ const dbConfig = require('./dbconfig.js');
4646
if (process.env.NODE_ORACLEDB_DRIVER_MODE === 'thick') {
4747

4848
// Thick mode requires Oracle Client or Oracle Instant Client libraries.
49-
// On Windows and macOS Intel you can specify the directory containing the
49+
// On Windows and macOS you can specify the directory containing the
5050
// libraries at runtime or before Node.js starts. On other platforms (where
5151
// Oracle libraries are available) the system library search path must always
5252
// include the Oracle library path before Node.js starts. If the search path
5353
// is not correct, you will get a DPI-1047 error. See the node-oracledb
5454
// installation documentation.
5555
let clientOpts = {};
56-
// On Windows and macOS Intel platforms, set the environment
57-
// variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
58-
if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) {
56+
// On Windows and macOS platforms, set the environment variable
57+
// NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
58+
if (process.platform === 'win32' || process.platform === 'darwin') {
5959
clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
6060
}
6161
oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode

examples/connectionpool.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2018, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2018, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -66,16 +66,16 @@ const dbConfig = require('./dbconfig.js');
6666
if (process.env.NODE_ORACLEDB_DRIVER_MODE === 'thick') {
6767

6868
// Thick mode requires Oracle Client or Oracle Instant Client libraries.
69-
// On Windows and macOS Intel you can specify the directory containing the
69+
// On Windows and macOS you can specify the directory containing the
7070
// libraries at runtime or before Node.js starts. On other platforms (where
7171
// Oracle libraries are available) the system library search path must always
7272
// include the Oracle library path before Node.js starts. If the search path
7373
// is not correct, you will get a DPI-1047 error. See the node-oracledb
7474
// installation documentation.
7575
let clientOpts = {};
76-
// On Windows and macOS Intel platforms, set the environment
77-
// variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
78-
if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) {
76+
// On Windows and macOS platforms, set the environment variable
77+
// NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
78+
if (process.platform === 'win32' || process.platform === 'darwin') {
7979
clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
8080
}
8181
oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode

examples/cqn1.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2018, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2018, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -49,16 +49,16 @@ const dbConfig = require('./dbconfig.js');
4949
// This example requires node-oracledb Thick mode.
5050
//
5151
// Thick mode requires Oracle Client or Oracle Instant Client libraries. On
52-
// Windows and macOS Intel you can specify the directory containing the
52+
// Windows and macOS you can specify the directory containing the
5353
// libraries at runtime or before Node.js starts. On other platforms (where
5454
// Oracle libraries are available) the system library search path must always
5555
// include the Oracle library path before Node.js starts. If the search path
5656
// is not correct, you will get a DPI-1047 error. See the node-oracledb
5757
// installation documentation.
5858
let clientOpts = {};
59-
// On Windows and macOS Intel platforms, set the environment
60-
// variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
61-
if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) {
59+
// On Windows and macOS platforms, set the environment variable
60+
// NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
61+
if (process.platform === 'win32' || process.platform === 'darwin') {
6262
clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
6363
}
6464
oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode

examples/cqn2.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2018, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2018, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -51,16 +51,16 @@ const dbConfig = require('./dbconfig.js');
5151
// This example requires node-oracledb Thick mode.
5252
//
5353
// Thick mode requires Oracle Client or Oracle Instant Client libraries. On
54-
// Windows and macOS Intel you can specify the directory containing the
54+
// Windows and macOS you can specify the directory containing the
5555
// libraries at runtime or before Node.js starts. On other platforms (where
5656
// Oracle libraries are available) the system library search path must always
5757
// include the Oracle library path before Node.js starts. If the search path
5858
// is not correct, you will get a DPI-1047 error. See the node-oracledb
5959
// installation documentation.
6060
let clientOpts = {};
61-
// On Windows and macOS Intel platforms, set the environment
62-
// variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
63-
if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) {
61+
// On Windows and macOS platforms, set the environment variable
62+
// NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
63+
if (process.platform === 'win32' || process.platform === 'darwin') {
6464
clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
6565
}
6666
oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode

examples/date_timestamp1.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2015, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2015, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -51,16 +51,16 @@ const dbConfig = require('./dbconfig.js');
5151
// Optionally run in node-oracledb Thick mode
5252
if (process.env.NODE_ORACLEDB_DRIVER_MODE === 'thick') {
5353
// Thick mode requires Oracle Client or Oracle Instant Client libraries. On
54-
// Windows and macOS Intel you can specify the directory containing the
54+
// Windows and macOS you can specify the directory containing the
5555
// libraries at runtime or before Node.js starts. On other platforms (where
5656
// Oracle libraries are available) the system library search path must always
5757
// include the Oracle library path before Node.js starts. If the search path
5858
// is not correct, you will get a DPI-1047 error. See the node-oracledb
5959
// installation documentation.
6060
let clientOpts = {};
61-
// On Windows and macOS Intel platforms, set the environment
62-
// variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
63-
if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) {
61+
// On Windows and macOS platforms, set the environment variable
62+
// NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
63+
if (process.platform === 'win32' || process.platform === 'darwin') {
6464
clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
6565
}
6666
oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode

examples/date_timestamp2.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2015, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2015, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -52,16 +52,16 @@ const dbConfig = require('./dbconfig.js');
5252
// Optionally run in node-oracledb Thick mode
5353
if (process.env.NODE_ORACLEDB_DRIVER_MODE === 'thick') {
5454
// Thick mode requires Oracle Client or Oracle Instant Client libraries. On
55-
// Windows and macOS Intel you can specify the directory containing the
55+
// Windows and macOS can specify the directory containing the
5656
// libraries at runtime or before Node.js starts. On other platforms (where
5757
// Oracle libraries are available) the system library search path must always
5858
// include the Oracle library path before Node.js starts. If the search path
5959
// is not correct, you will get a DPI-1047 error. See the node-oracledb
6060
// installation documentation.
6161
let clientOpts = {};
62-
// On Windows and macOS Intel platforms, set the environment
63-
// variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
64-
if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) {
62+
// On Windows and macOS platforms, set the environment variable
63+
// NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path
64+
if (process.platform === 'win32' || process.platform === 'darwin') {
6565
clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
6666
}
6767
oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode

0 commit comments

Comments
 (0)