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.
- package/LICENSE.txt +1 -1
- package/NOTICE.txt +1 -1
- package/README.md +3 -3
- package/build/Release/oracledb-6.4.0-darwin-x64.node +0 -0
- package/build/Release/oracledb-6.4.0-darwin-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-6.4.0-js-buildinfo.txt +1 -0
- package/build/Release/oracledb-6.4.0-linux-arm64.node +0 -0
- package/build/Release/oracledb-6.4.0-linux-arm64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-6.4.0-linux-x64.node +0 -0
- package/build/Release/oracledb-6.4.0-linux-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-6.4.0-win32-x64.node +0 -0
- package/build/Release/oracledb-6.4.0-win32-x64.node-buildinfo.txt +1 -0
- package/examples/README.md +3 -0
- package/lib/aqQueue.js +8 -8
- package/lib/connection.js +55 -9
- package/lib/constants.js +7 -1
- package/lib/dbObject.js +72 -1
- package/lib/errors.js +27 -8
- package/lib/{thin/protocol → impl/datahandlers}/buffer.js +36 -32
- package/lib/impl/datahandlers/constants.js +105 -0
- package/lib/{thin/protocol → impl/datahandlers}/oson.js +19 -1
- package/lib/impl/datahandlers/vector.js +156 -0
- package/lib/impl/pool.js +9 -0
- package/lib/impl/resultset.js +34 -17
- package/lib/lob.js +22 -6
- package/lib/oracledb.js +24 -0
- package/lib/pool.js +10 -1
- package/lib/poolStatistics.js +3 -1
- package/lib/settings.js +30 -6
- package/lib/sodaDocCursor.js +14 -1
- package/lib/thin/connection.js +100 -144
- package/lib/thin/dbObject.js +4 -2
- package/lib/thin/lob.js +6 -6
- package/lib/thin/pool.js +22 -4
- package/lib/thin/protocol/capabilities.js +3 -1
- package/lib/thin/protocol/constants.js +20 -52
- package/lib/thin/protocol/messages/auth.js +1 -1
- package/lib/thin/protocol/messages/base.js +21 -18
- package/lib/thin/protocol/messages/dataType.js +3 -2
- package/lib/thin/protocol/messages/withData.js +38 -6
- package/lib/thin/protocol/packet.js +58 -4
- package/lib/thin/sqlnet/networkSession.js +13 -1
- package/lib/thin/statement.js +7 -7
- package/lib/thin/statementCache.js +167 -0
- package/lib/transformer.js +13 -4
- package/lib/types.js +12 -2
- package/lib/util.js +29 -0
- package/lib/version.js +2 -2
- package/package.json +1 -1
- package/build/Release/oracledb-6.3.0-darwin-x64.node +0 -0
- package/build/Release/oracledb-6.3.0-darwin-x64.node-buildinfo.txt +0 -1
- package/build/Release/oracledb-6.3.0-js-buildinfo.txt +0 -1
- package/build/Release/oracledb-6.3.0-linux-arm64.node +0 -0
- package/build/Release/oracledb-6.3.0-linux-arm64.node-buildinfo.txt +0 -1
- package/build/Release/oracledb-6.3.0-linux-x64.node +0 -0
- package/build/Release/oracledb-6.3.0-linux-x64.node-buildinfo.txt +0 -1
- package/build/Release/oracledb-6.3.0-win32-x64.node +0 -0
- 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:
|
|
33
|
+
VERSION_MINOR: 4,
|
|
34
34
|
VERSION_PATCH: 0,
|
|
35
35
|
VERSION_SUFFIX: ''
|
|
36
36
|
};
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -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
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
oracledb-6.3.0-linux-arm64.node v16.20.2 6430a56e82b0405c4118fcc1060c3568be4c43aa 4b8ebc2af8c9d58f7260c9de81d220f14fcab777 Sun, 17 Dec 2023 09:47:35 GMT
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
oracledb-6.3.0-linux-x64.node v16.19.1 6430a56e82b0405c4118fcc1060c3568be4c43aa 4b8ebc2af8c9d58f7260c9de81d220f14fcab777 Fri, 15 Dec 2023 17:32:48 GMT
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
oracledb-6.3.0-win32-x64.node v14.17.3 6430a56e82b0405c4118fcc1060c3568be4c43aa 4b8ebc2af8c9d58f7260c9de81d220f14fcab777 Fri, 15 Dec 2023 17:43:19 GMT
|