oracledb 6.3.0 → 6.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.
Files changed (58) hide show
  1. package/LICENSE.txt +1 -1
  2. package/NOTICE.txt +1 -1
  3. package/README.md +3 -3
  4. package/build/Release/oracledb-6.4.0-darwin-x64.node +0 -0
  5. package/build/Release/oracledb-6.4.0-darwin-x64.node-buildinfo.txt +1 -0
  6. package/build/Release/oracledb-6.4.0-js-buildinfo.txt +1 -0
  7. package/build/Release/oracledb-6.4.0-linux-arm64.node +0 -0
  8. package/build/Release/oracledb-6.4.0-linux-arm64.node-buildinfo.txt +1 -0
  9. package/build/Release/oracledb-6.4.0-linux-x64.node +0 -0
  10. package/build/Release/oracledb-6.4.0-linux-x64.node-buildinfo.txt +1 -0
  11. package/build/Release/oracledb-6.4.0-win32-x64.node +0 -0
  12. package/build/Release/oracledb-6.4.0-win32-x64.node-buildinfo.txt +1 -0
  13. package/examples/README.md +3 -0
  14. package/lib/aqQueue.js +8 -8
  15. package/lib/connection.js +55 -9
  16. package/lib/constants.js +7 -1
  17. package/lib/dbObject.js +72 -1
  18. package/lib/errors.js +27 -8
  19. package/lib/{thin/protocol → impl/datahandlers}/buffer.js +36 -32
  20. package/lib/impl/datahandlers/constants.js +105 -0
  21. package/lib/{thin/protocol → impl/datahandlers}/oson.js +19 -1
  22. package/lib/impl/datahandlers/vector.js +156 -0
  23. package/lib/impl/pool.js +9 -0
  24. package/lib/impl/resultset.js +34 -17
  25. package/lib/lob.js +22 -6
  26. package/lib/oracledb.js +24 -0
  27. package/lib/pool.js +10 -1
  28. package/lib/poolStatistics.js +3 -1
  29. package/lib/settings.js +30 -6
  30. package/lib/sodaDocCursor.js +14 -1
  31. package/lib/thin/connection.js +100 -144
  32. package/lib/thin/dbObject.js +4 -2
  33. package/lib/thin/lob.js +6 -6
  34. package/lib/thin/pool.js +22 -4
  35. package/lib/thin/protocol/capabilities.js +3 -1
  36. package/lib/thin/protocol/constants.js +20 -52
  37. package/lib/thin/protocol/messages/auth.js +1 -1
  38. package/lib/thin/protocol/messages/base.js +21 -18
  39. package/lib/thin/protocol/messages/dataType.js +3 -2
  40. package/lib/thin/protocol/messages/withData.js +38 -6
  41. package/lib/thin/protocol/packet.js +58 -4
  42. package/lib/thin/sqlnet/networkSession.js +13 -1
  43. package/lib/thin/statement.js +7 -7
  44. package/lib/thin/statementCache.js +167 -0
  45. package/lib/transformer.js +13 -4
  46. package/lib/types.js +12 -2
  47. package/lib/util.js +29 -0
  48. package/lib/version.js +2 -2
  49. package/package.json +1 -1
  50. package/build/Release/oracledb-6.3.0-darwin-x64.node +0 -0
  51. package/build/Release/oracledb-6.3.0-darwin-x64.node-buildinfo.txt +0 -1
  52. package/build/Release/oracledb-6.3.0-js-buildinfo.txt +0 -1
  53. package/build/Release/oracledb-6.3.0-linux-arm64.node +0 -0
  54. package/build/Release/oracledb-6.3.0-linux-arm64.node-buildinfo.txt +0 -1
  55. package/build/Release/oracledb-6.3.0-linux-x64.node +0 -0
  56. package/build/Release/oracledb-6.3.0-linux-x64.node-buildinfo.txt +0 -1
  57. package/build/Release/oracledb-6.3.0-win32-x64.node +0 -0
  58. package/build/Release/oracledb-6.3.0-win32-x64.node-buildinfo.txt +0 -1
package/lib/util.js CHANGED
@@ -327,6 +327,33 @@ function addTypeProperties(obj, attrName) {
327
327
  }
328
328
  }
329
329
 
330
+ //-----------------------------------------------------------------------------
331
+ // isVectorValue()
332
+ //
333
+ // Returns true for list of typed arrays supported for vector column types
334
+ //
335
+ // -----------------------------------------------------------------------------
336
+ function isVectorValue(value) {
337
+ return (value instanceof Float32Array ||
338
+ value instanceof Float64Array ||
339
+ value instanceof Int8Array);
340
+ }
341
+
342
+ //-----------------------------------------------------------------------------
343
+ // makeDate()
344
+ //
345
+ // Returns a date from the given components.
346
+ //
347
+ // -----------------------------------------------------------------------------
348
+ function makeDate(useLocal, year, month, day, hour, minute,
349
+ second, fseconds, offset) {
350
+ if (useLocal) {
351
+ return new Date(year, month - 1, day, hour, minute, second, fseconds);
352
+ }
353
+ return new Date(Date.UTC(year, month - 1, day, hour, minute, second,
354
+ fseconds) - offset * 60000);
355
+ }
356
+
330
357
  // define exports
331
358
  module.exports = {
332
359
  BINARY_FILE,
@@ -346,7 +373,9 @@ module.exports = {
346
373
  isSodaDocument,
347
374
  isTokenExpired,
348
375
  isTokenValid,
376
+ isVectorValue,
349
377
  isXid,
378
+ makeDate,
350
379
  preventConcurrent,
351
380
  serialize,
352
381
  verifySodaDoc,
package/lib/version.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2023, Oracle and/or its affiliates.
1
+ // Copyright (c) 2023, 2024, Oracle and/or its affiliates.
2
2
 
3
3
  //-----------------------------------------------------------------------------
4
4
  //
@@ -30,7 +30,7 @@
30
30
 
31
31
  module.exports = {
32
32
  VERSION_MAJOR: 6,
33
- VERSION_MINOR: 3,
33
+ VERSION_MINOR: 4,
34
34
  VERSION_PATCH: 0,
35
35
  VERSION_SUFFIX: ''
36
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oracledb",
3
- "version": "6.3.0",
3
+ "version": "6.4.0",
4
4
  "description": "A Node.js module for Oracle Database access from JavaScript and TypeScript",
5
5
  "license": "(Apache-2.0 OR UPL-1.0)",
6
6
  "homepage": "http://oracle.github.io/node-oracledb/",
@@ -1 +0,0 @@
1
- oracledb-6.3.0-darwin-x64.node v18.16.0 6430a56e82b0405c4118fcc1060c3568be4c43aa 4b8ebc2af8c9d58f7260c9de81d220f14fcab777 Sun, 17 Dec 2023 09:33:07 GMT
@@ -1 +0,0 @@
1
- 6430a56e82b0405c4118fcc1060c3568be4c43aa
@@ -1 +0,0 @@
1
- oracledb-6.3.0-linux-arm64.node v16.20.2 6430a56e82b0405c4118fcc1060c3568be4c43aa 4b8ebc2af8c9d58f7260c9de81d220f14fcab777 Sun, 17 Dec 2023 09:47:35 GMT
@@ -1 +0,0 @@
1
- oracledb-6.3.0-linux-x64.node v16.19.1 6430a56e82b0405c4118fcc1060c3568be4c43aa 4b8ebc2af8c9d58f7260c9de81d220f14fcab777 Fri, 15 Dec 2023 17:32:48 GMT
@@ -1 +0,0 @@
1
- oracledb-6.3.0-win32-x64.node v14.17.3 6430a56e82b0405c4118fcc1060c3568be4c43aa 4b8ebc2af8c9d58f7260c9de81d220f14fcab777 Fri, 15 Dec 2023 17:43:19 GMT