oracledb 3.1.2 → 4.2.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +277 -4
  2. package/LICENSE.md +5906 -360
  3. package/README.md +7 -8
  4. package/build/Release/oracledb-4.2.0-darwin-x64.node +0 -0
  5. package/build/Release/oracledb-4.2.0-darwin-x64.node-buildinfo.txt +1 -0
  6. package/build/Release/oracledb-4.2.0-linux-x64.node +0 -0
  7. package/build/Release/oracledb-4.2.0-linux-x64.node-buildinfo.txt +1 -0
  8. package/build/Release/oracledb-4.2.0-win32-x64.node +0 -0
  9. package/build/Release/oracledb-4.2.0-win32-x64.node-buildinfo.txt +1 -0
  10. package/lib/aqDeqOptions.js +29 -0
  11. package/lib/aqEnqOptions.js +29 -0
  12. package/lib/aqMessage.js +29 -0
  13. package/lib/aqQueue.js +84 -0
  14. package/lib/connection.js +294 -326
  15. package/lib/dbObject.js +144 -0
  16. package/lib/lob.js +125 -132
  17. package/lib/oracledb.js +162 -483
  18. package/lib/pool.js +95 -109
  19. package/lib/{querystream.js → queryStream.js} +31 -30
  20. package/lib/resultset.js +75 -125
  21. package/lib/sodaCollection.js +99 -165
  22. package/lib/sodaDatabase.js +58 -133
  23. package/lib/sodaDocCursor.js +27 -70
  24. package/lib/sodaDocument.js +35 -65
  25. package/lib/sodaOperation.js +96 -252
  26. package/lib/util.js +78 -71
  27. package/package/README.md +41 -36
  28. package/package/install.js +30 -24
  29. package/package.json +2 -2
  30. package/build/Release/oracledb-abi48-darwin-x64.node +0 -0
  31. package/build/Release/oracledb-abi48-darwin-x64.node-buildinfo.txt +0 -1
  32. package/build/Release/oracledb-abi48-linux-x64.node +0 -0
  33. package/build/Release/oracledb-abi48-linux-x64.node-buildinfo.txt +0 -1
  34. package/build/Release/oracledb-abi48-win32-x64.node +0 -0
  35. package/build/Release/oracledb-abi48-win32-x64.node-buildinfo.txt +0 -1
  36. package/build/Release/oracledb-abi57-darwin-x64.node +0 -0
  37. package/build/Release/oracledb-abi57-darwin-x64.node-buildinfo.txt +0 -1
  38. package/build/Release/oracledb-abi57-linux-x64.node +0 -0
  39. package/build/Release/oracledb-abi57-linux-x64.node-buildinfo.txt +0 -1
  40. package/build/Release/oracledb-abi57-win32-x64.node +0 -0
  41. package/build/Release/oracledb-abi57-win32-x64.node-buildinfo.txt +0 -1
  42. package/build/Release/oracledb-abi64-darwin-x64.node +0 -0
  43. package/build/Release/oracledb-abi64-darwin-x64.node-buildinfo.txt +0 -1
  44. package/build/Release/oracledb-abi64-linux-x64.node +0 -0
  45. package/build/Release/oracledb-abi64-linux-x64.node-buildinfo.txt +0 -1
  46. package/build/Release/oracledb-abi64-win32-x64.node +0 -0
  47. package/build/Release/oracledb-abi64-win32-x64.node-buildinfo.txt +0 -1
  48. package/build/Release/oracledb-abi67-darwin-x64.node +0 -0
  49. package/build/Release/oracledb-abi67-darwin-x64.node-buildinfo.txt +0 -1
  50. package/build/Release/oracledb-abi67-linux-x64.node +0 -0
  51. package/build/Release/oracledb-abi67-linux-x64.node-buildinfo.txt +0 -1
  52. package/build/Release/oracledb-abi67-win32-x64.node +0 -0
  53. package/build/Release/oracledb-abi67-win32-x64.node-buildinfo.txt +0 -1
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
- # node-oracledb version 3.1
1
+ # node-oracledb version 4.2
2
2
 
3
3
  The node-oracledb add-on for Node.js powers high performance Oracle
4
4
  Database applications.
5
5
 
6
- Use node-oracledb to connect Node.js 6, 8, 10 and 11 to Oracle Database.
6
+ Use node-oracledb 4.2 to connect Node.js 8.16, 10.16, 12, or later, to Oracle Database.
7
+ Older versions of node-oracledb may work with older versions of Node.js.
7
8
 
8
9
  Node-oracledb supports basic and advanced features of Oracle Database
9
- and Oracle Client. See the
10
- [homepage][4] for a list.
10
+ and Oracle Client. See the [homepage][4] for a list.
11
11
 
12
12
  The node-oracledb module is open source and maintained by Oracle Corp.
13
13
  It is stable, well documented, and has a comprehensive test suite.
@@ -22,8 +22,7 @@ See [Documentation for the Oracle Database Node.js Add-on][32] and the [CHANGELO
22
22
 
23
23
  ## <a name="examples"></a> Examples
24
24
 
25
- See the [examples][30] directory. Start with
26
- [examples/example.js][31].
25
+ See the [examples][30] directory. Start with [examples/example.js][31].
27
26
 
28
27
  ## <a name="help"></a> Help
29
28
 
@@ -44,7 +43,7 @@ have been made by the community.
44
43
 
45
44
  ## <a name="license"></a> License
46
45
 
47
- Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
46
+ Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
48
47
 
49
48
  You may not use the identified files except in compliance with the Apache
50
49
  License, Version 2.0 (the "License.")
@@ -65,7 +64,7 @@ limitations under the License.
65
64
  [3]: https://github.com/oracle/node-oracledb/issues
66
65
  [4]: https://oracle.github.io/node-oracledb
67
66
  [5]: https://node-oracledb.slack.com/
68
- [6]: https://node-oracledb.slack.com/join/shared_invite/enQtNDU4Mjc2NzM5OTA2LTdkMzczODY3OGY3MGI0Yjk3NmQ4NDU4MTI2OGVjNTYzMjE5OGY5YzVkNDY4MWNkNjFiMDM2ZDMwOWRjNWVhNTg
67
+ [6]: https://join.slack.com/t/node-oracledb/shared_invite/enQtNDU4Mjc2NzM5OTA2LWMzY2ZlZDY5MDdlMGZiMGRkY2IzYjI5OGU4YTEzZWM5YjQ3ODUzMjcxNWQyNzE4MzM5YjNkYjVmNDk5OWU5NDM
69
68
  [30]: https://github.com/oracle/node-oracledb/blob/master/examples
70
69
  [31]: https://github.com/oracle/node-oracledb/blob/master/examples/example.js#L32
71
70
  [32]: https://oracle.github.io/node-oracledb/doc/api.html
@@ -0,0 +1 @@
1
+ oracledb-4.2.0-darwin-x64.node v12.14.0 da38f81a6d5a455470eeac591d361d840f9d7ff7 3bfc57e44f88465440b046ff70be38097d2d4fd7 Thu, 16 Jan 2020 06:03:53 GMT
@@ -0,0 +1 @@
1
+ oracledb-4.2.0-linux-x64.node v10.18.1 da38f81a6d5a455470eeac591d361d840f9d7ff7 3bfc57e44f88465440b046ff70be38097d2d4fd7 Thu, 16 Jan 2020 06:04:31 GMT
@@ -0,0 +1 @@
1
+ oracledb-4.2.0-win32-x64.node v13.5.0 da38f81a6d5a455470eeac591d361d840f9d7ff7 3bfc57e44f88465440b046ff70be38097d2d4fd7 Thu, 16 Jan 2020 05:59:23 GMT
@@ -0,0 +1,29 @@
1
+ // Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved
2
+
3
+ //-----------------------------------------------------------------------------
4
+ //
5
+ // You may not use the identified files except in compliance with the Apache
6
+ // License, Version 2.0 (the "License.")
7
+ //
8
+ // You may obtain a copy of the License at
9
+ // http://www.apache.org/licenses/LICENSE-2.0.
10
+ //
11
+ // Unless required by applicable law or agreed to in writing, software
12
+ // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
+ // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ //
15
+ // See the License for the specific language governing permissions and
16
+ // limitations under the License.
17
+ //
18
+ //-----------------------------------------------------------------------------
19
+
20
+ 'use strict';
21
+
22
+ class AqDeqOptions {
23
+
24
+ _extend(oracledb) { //eslint-disable-line
25
+ }
26
+
27
+ }
28
+
29
+ module.exports = AqDeqOptions;
@@ -0,0 +1,29 @@
1
+ // Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved
2
+
3
+ //-----------------------------------------------------------------------------
4
+ //
5
+ // You may not use the identified files except in compliance with the Apache
6
+ // License, Version 2.0 (the "License.")
7
+ //
8
+ // You may obtain a copy of the License at
9
+ // http://www.apache.org/licenses/LICENSE-2.0.
10
+ //
11
+ // Unless required by applicable law or agreed to in writing, software
12
+ // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
+ // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ //
15
+ // See the License for the specific language governing permissions and
16
+ // limitations under the License.
17
+ //
18
+ //-----------------------------------------------------------------------------
19
+
20
+ 'use strict';
21
+
22
+ class AqEnqOptions {
23
+
24
+ _extend(oracledb) { //eslint-disable-line
25
+ }
26
+
27
+ }
28
+
29
+ module.exports = AqEnqOptions;
@@ -0,0 +1,29 @@
1
+ // Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved
2
+
3
+ //-----------------------------------------------------------------------------
4
+ //
5
+ // You may not use the identified files except in compliance with the Apache
6
+ // License, Version 2.0 (the "License.")
7
+ //
8
+ // You may obtain a copy of the License at
9
+ // http://www.apache.org/licenses/LICENSE-2.0.
10
+ //
11
+ // Unless required by applicable law or agreed to in writing, software
12
+ // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
+ // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ //
15
+ // See the License for the specific language governing permissions and
16
+ // limitations under the License.
17
+ //
18
+ //-----------------------------------------------------------------------------
19
+
20
+ 'use strict';
21
+
22
+ class AqMessage {
23
+
24
+ _extend(oracledb) { //eslint-disable-line
25
+ }
26
+
27
+ }
28
+
29
+ module.exports = AqMessage;
package/lib/aqQueue.js ADDED
@@ -0,0 +1,84 @@
1
+ // Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved
2
+
3
+ //-----------------------------------------------------------------------------
4
+ //
5
+ // You may not use the identified files except in compliance with the Apache
6
+ // License, Version 2.0 (the "License.")
7
+ //
8
+ // You may obtain a copy of the License at
9
+ // http://www.apache.org/licenses/LICENSE-2.0.
10
+ //
11
+ // Unless required by applicable law or agreed to in writing, software
12
+ // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
+ // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ //
15
+ // See the License for the specific language governing permissions and
16
+ // limitations under the License.
17
+ //
18
+ //-----------------------------------------------------------------------------
19
+
20
+ 'use strict';
21
+
22
+ const nodbUtil = require('./util.js');
23
+
24
+ //-----------------------------------------------------------------------------
25
+ // deqOne
26
+ // Returns a single message from the queue, if one is available.
27
+ //-----------------------------------------------------------------------------
28
+ function deqOne(cb) {
29
+ nodbUtil.checkAsyncArgs(arguments, 1, 1);
30
+ this._deqOne(cb);
31
+ }
32
+
33
+
34
+ //-----------------------------------------------------------------------------
35
+ // deqMany
36
+ // Returns an array of messages from the queue, up to the maximum specified,
37
+ // if any are available.
38
+ //----------------------------------------------------------------------------
39
+ function deqMany(maxMessages, cb) {
40
+ nodbUtil.checkAsyncArgs(arguments, 2, 2);
41
+ nodbUtil.assert(typeof maxMessages === 'number', 'NJS-005', 1);
42
+
43
+ this._deqMany(maxMessages, cb);
44
+ }
45
+
46
+
47
+ //-----------------------------------------------------------------------------
48
+ // enqOne
49
+ // Enqueues a single message into the queue.
50
+ //-----------------------------------------------------------------------------
51
+ function enqOne(message, cb) {
52
+ nodbUtil.checkAsyncArgs(arguments, 2, 2);
53
+ nodbUtil.assert(typeof message === 'object' || typeof message === 'string',
54
+ 'NJS-005', 1);
55
+
56
+ this._enqOne(message, cb);
57
+ }
58
+
59
+
60
+ //-----------------------------------------------------------------------------
61
+ // enqMany
62
+ // Returns an array of messages from the queue, up to the maximum specified,
63
+ // if any are available.
64
+ //----------------------------------------------------------------------------
65
+ function enqMany(messages, cb) {
66
+ nodbUtil.checkAsyncArgs(arguments, 2, 2);
67
+ nodbUtil.assert(Array.isArray(messages), 'NJS-005', 1);
68
+
69
+ this._enqMany(messages, cb);
70
+ }
71
+
72
+
73
+ class AqQueue {
74
+
75
+ _extend(oracledb) {
76
+ this.deqOne = nodbUtil.promisify(oracledb, deqOne);
77
+ this.deqMany = nodbUtil.promisify(oracledb, deqMany);
78
+ this.enqOne = nodbUtil.promisify(oracledb, enqOne);
79
+ this.enqMany = nodbUtil.promisify(oracledb, enqMany);
80
+ }
81
+
82
+ }
83
+
84
+ module.exports = AqQueue;