oracledb 5.1.0 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +164 -2
- package/LICENSE.txt +443 -0
- package/NOTICE.txt +1 -0
- package/README.md +15 -13
- package/THIRD_PARTY_LICENSES.txt +52 -0
- package/build/Release/oracledb-5.4.0-darwin-x64.node +0 -0
- package/build/Release/oracledb-5.4.0-darwin-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-5.4.0-linux-x64.node +0 -0
- package/build/Release/oracledb-5.4.0-linux-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-5.4.0-win32-x64.node +0 -0
- package/build/Release/oracledb-5.4.0-win32-x64.node-buildinfo.txt +1 -0
- package/lib/aqDeqOptions.js +1 -1
- package/lib/aqEnqOptions.js +1 -1
- package/lib/aqMessage.js +1 -1
- package/lib/aqQueue.js +9 -5
- package/lib/connection.js +233 -33
- package/lib/dbObject.js +17 -17
- package/lib/lob.js +17 -5
- package/lib/oracledb.js +74 -11
- package/lib/pool.js +271 -163
- package/lib/poolStatistics.js +124 -0
- package/lib/queryStream.js +8 -6
- package/lib/resultset.js +37 -9
- package/lib/sodaCollection.js +46 -21
- package/lib/sodaDatabase.js +8 -4
- package/lib/sodaDocCursor.js +7 -3
- package/lib/sodaDocument.js +1 -1
- package/lib/sodaOperation.js +21 -9
- package/lib/util.js +80 -20
- package/package/README.md +8 -8
- package/package/install.js +8 -7
- package/package/prunebinaries.js +4 -5
- package/package.json +2 -2
- package/LICENSE.md +0 -2685
- package/build/Release/oracledb-5.1.0-darwin-x64.node +0 -0
- package/build/Release/oracledb-5.1.0-darwin-x64.node-buildinfo.txt +0 -1
- package/build/Release/oracledb-5.1.0-linux-x64.node +0 -0
- package/build/Release/oracledb-5.1.0-linux-x64.node-buildinfo.txt +0 -1
- package/build/Release/oracledb-5.1.0-win32-x64.node +0 -0
- package/build/Release/oracledb-5.1.0-win32-x64.node-buildinfo.txt +0 -1
package/package/README.md
CHANGED
|
@@ -16,8 +16,8 @@ In a clone or copy of the repository:
|
|
|
16
16
|
|
|
17
17
|
You can run `npm run buildbinary` on each operating system architecture that
|
|
18
18
|
you want to include in your package. Copy the node-oracledb binaries and
|
|
19
|
-
related build metadata information files
|
|
20
|
-
one machine.
|
|
19
|
+
related build metadata information files from all `package/Staging`
|
|
20
|
+
directories to the `package/Staging` directory on one machine.
|
|
21
21
|
|
|
22
22
|
- Run `npm run buildpackage`. This calls `buildpackage.js` to make the
|
|
23
23
|
node-oracledb package containing the node-oracledb JavaScript files, the
|
|
@@ -28,22 +28,22 @@ In a clone or copy of the repository:
|
|
|
28
28
|
|
|
29
29
|
# Package Installation
|
|
30
30
|
|
|
31
|
-
-
|
|
31
|
+
- When running `npm install` with the created package, the `package.json`
|
|
32
32
|
install script runs `install.js` to check the availability of a binary module
|
|
33
33
|
for the current Node.js version and operating system architecture.
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
- If installation succeeds, space conscious users can then run `npm run prune`
|
|
36
|
+
which removes pre-built binaries for all other architectures.
|
|
37
|
+
|
|
38
|
+
- If `npm install` fails because a suitable binary is not available, users must
|
|
36
39
|
then compile node-oracledb using source code from GitHub. Alternatively a
|
|
37
40
|
different version of node-oracledb, Node.js, or different operating system may
|
|
38
41
|
have a suitable pre-built binary available. See
|
|
39
42
|
https://github.com/oracle/node-oracledb/releases for information about Node.js
|
|
40
43
|
versions and pre-built node-oracledb binaries.
|
|
41
44
|
|
|
42
|
-
- After install, space conscious users can run `npm run prune` which removes
|
|
43
|
-
pre-built binaries for all other architectures.
|
|
44
|
-
|
|
45
45
|
The
|
|
46
|
-
[`package.json`](https://github.com/oracle/node-oracledb/blob/
|
|
46
|
+
[`package.json`](https://github.com/oracle/node-oracledb/blob/main/package.json)
|
|
47
47
|
in GitHub doesn't have an `install` script target by default. This means that
|
|
48
48
|
node-gyp will be invoked to compile node-oracledb. This allows installation
|
|
49
49
|
from GitHub [source
|
package/package/install.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright (c) 2017,
|
|
1
|
+
/* Copyright (c) 2017, 2022, Oracle and/or its affiliates. */
|
|
2
2
|
|
|
3
3
|
/******************************************************************************
|
|
4
4
|
*
|
|
@@ -76,7 +76,7 @@ function done(err) {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
log('********************************************************************************');
|
|
79
|
-
log('** Node-oracledb ' + nodbUtil.PACKAGE_JSON_VERSION + ' installed
|
|
79
|
+
log('** Node-oracledb ' + nodbUtil.PACKAGE_JSON_VERSION + ' installed in Node.js ' + process.versions.node + ' (' + process.platform + ', ' + process.arch + ')');
|
|
80
80
|
log('**');
|
|
81
81
|
log('** To use node-oracledb:');
|
|
82
82
|
log('** - Oracle Client libraries (' + arch + ') must be available.');
|
|
@@ -86,11 +86,12 @@ function done(err) {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
// Check for a usable binary file for the node-oracledb module.
|
|
90
|
-
//
|
|
91
|
-
//
|
|
92
|
-
//
|
|
93
|
-
//
|
|
89
|
+
// Check for a usable binary file for the node-oracledb module. Node.js 8.16
|
|
90
|
+
// and 10.16 (and 12.0) contain an important Node-API performance regression fix.
|
|
91
|
+
// Note that the checked versions are the minimum required for Node-API
|
|
92
|
+
// compatibility; as new Node.js versions are released, older Node.js versions
|
|
93
|
+
// are dropped from the node-oracledb test plan. For example, the obsolete
|
|
94
|
+
// Node.js 9 and 11 versions are not tested.
|
|
94
95
|
|
|
95
96
|
function checkAvailable(cb) {
|
|
96
97
|
let vs = process.version.substring(1).split(".").map(Number);
|
package/package/prunebinaries.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright (c) 2019, Oracle and/or its affiliates.
|
|
1
|
+
/* Copyright (c) 2019, 2022, Oracle and/or its affiliates. */
|
|
2
2
|
|
|
3
3
|
/******************************************************************************
|
|
4
4
|
*
|
|
@@ -19,13 +19,12 @@
|
|
|
19
19
|
* prunebinaries.js
|
|
20
20
|
*
|
|
21
21
|
* DESCRIPTION
|
|
22
|
-
* Removes pre-built binaries for all other
|
|
23
|
-
* It keeps only the binary for the current Node.js version and architecture.
|
|
22
|
+
* Removes pre-built binaries for all other architectures.
|
|
24
23
|
* This can be used to reduce the footprint of a node-oracledb install.
|
|
25
24
|
*
|
|
26
25
|
* USAGE
|
|
27
26
|
* Invoke this from the top level directory.
|
|
28
|
-
* After an 'npm install oracledb' installs pre-built binaries
|
|
27
|
+
* After an 'npm install oracledb' installs pre-built binaries, this file
|
|
29
28
|
* can be run with 'npm run prune'.
|
|
30
29
|
*
|
|
31
30
|
*****************************************************************************/
|
|
@@ -46,6 +45,6 @@ try {
|
|
|
46
45
|
fs.unlinkSync(dir + '/' + f[i]);
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
|
-
} catch(err) {
|
|
48
|
+
} catch (err) {
|
|
50
49
|
console.error(err.message);
|
|
51
50
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oracledb",
|
|
3
|
-
"version": "5.
|
|
4
|
-
"description": "A Node.js module for Oracle Database access",
|
|
3
|
+
"version": "5.4.0",
|
|
4
|
+
"description": "A Node.js module for Oracle Database access from JavaScript and TypeScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "http://oracle.github.io/node-oracledb/",
|
|
7
7
|
"keywords": [
|