@sqb/oracle 4.19.5 → 4.19.6
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/README.md +7 -7
- package/cjs/helpers.js +2 -1
- package/cjs/ora-connection.js +3 -1
- package/esm/helpers.js +2 -1
- package/esm/ora-connection.js +3 -1
- package/package.json +8 -5
package/README.md
CHANGED
|
@@ -18,12 +18,12 @@ SQB is an extensible, multi-dialect SQL query builder and Database connection wr
|
|
|
18
18
|
|
|
19
19
|
## Main goals
|
|
20
20
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
21
|
+
- Single code base for any sql based database
|
|
22
|
+
- Powerful and simplified query coding scheme
|
|
23
|
+
- Fast applications with low memory requirements
|
|
24
|
+
- Let applications work with large data tables efficiently
|
|
25
|
+
- Support latest JavaScript language standards
|
|
26
|
+
- Lightweight and extensible framework.
|
|
27
27
|
|
|
28
28
|
You can report bugs and discuss features on the [GitHub issues](https://github.com/sqbjs/sqb/issues) page
|
|
29
29
|
|
|
@@ -39,7 +39,7 @@ $ npm install @sqb/oracle --save
|
|
|
39
39
|
|
|
40
40
|
## Node Compatibility
|
|
41
41
|
|
|
42
|
-
-
|
|
42
|
+
- node >= 16.x
|
|
43
43
|
|
|
44
44
|
### License
|
|
45
45
|
|
package/cjs/helpers.js
CHANGED
|
@@ -16,7 +16,8 @@ function clientConfigurationToDriver(config) {
|
|
|
16
16
|
const parsed = url_1.default.parse(hostUrl, true);
|
|
17
17
|
const host = decodeURI(parsed.hostname || '');
|
|
18
18
|
const port = config.port || (parsed.port && parseInt(parsed.port, 10)) || 1521;
|
|
19
|
-
const database = config.database ||
|
|
19
|
+
const database = config.database ||
|
|
20
|
+
(parsed.pathname && decodeURI(parsed.pathname.substring(1)));
|
|
20
21
|
cfg.connectString = `${host}:${port}${database ? '/' + database : ''}`;
|
|
21
22
|
if (!cfg.externalAuth) {
|
|
22
23
|
if (parsed.auth) {
|
package/cjs/ora-connection.js
CHANGED
|
@@ -116,7 +116,9 @@ class OraConnection {
|
|
|
116
116
|
const oraOptions = {
|
|
117
117
|
autoCommit: request.autoCommit,
|
|
118
118
|
resultSet: request.cursor,
|
|
119
|
-
outFormat: request.objectRows
|
|
119
|
+
outFormat: request.objectRows
|
|
120
|
+
? oracledb_1.default.OUT_FORMAT_OBJECT
|
|
121
|
+
: oracledb_1.default.OUT_FORMAT_ARRAY,
|
|
120
122
|
};
|
|
121
123
|
if (request.cursor)
|
|
122
124
|
oraOptions.fetchArraySize = request.fetchRows;
|
package/esm/helpers.js
CHANGED
|
@@ -12,7 +12,8 @@ export function clientConfigurationToDriver(config) {
|
|
|
12
12
|
const parsed = url.parse(hostUrl, true);
|
|
13
13
|
const host = decodeURI(parsed.hostname || '');
|
|
14
14
|
const port = config.port || (parsed.port && parseInt(parsed.port, 10)) || 1521;
|
|
15
|
-
const database = config.database ||
|
|
15
|
+
const database = config.database ||
|
|
16
|
+
(parsed.pathname && decodeURI(parsed.pathname.substring(1)));
|
|
16
17
|
cfg.connectString = `${host}:${port}${database ? '/' + database : ''}`;
|
|
17
18
|
if (!cfg.externalAuth) {
|
|
18
19
|
if (parsed.auth) {
|
package/esm/ora-connection.js
CHANGED
|
@@ -112,7 +112,9 @@ export class OraConnection {
|
|
|
112
112
|
const oraOptions = {
|
|
113
113
|
autoCommit: request.autoCommit,
|
|
114
114
|
resultSet: request.cursor,
|
|
115
|
-
outFormat: request.objectRows
|
|
115
|
+
outFormat: request.objectRows
|
|
116
|
+
? oracledb.OUT_FORMAT_OBJECT
|
|
117
|
+
: oracledb.OUT_FORMAT_ARRAY,
|
|
116
118
|
};
|
|
117
119
|
if (request.cursor)
|
|
118
120
|
oraOptions.fetchArraySize = request.fetchRows;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqb/oracle",
|
|
3
3
|
"description": "SQB serialization extension for Oracle database",
|
|
4
|
-
"version": "4.19.
|
|
4
|
+
"version": "4.19.6",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"tslib": "^2.8.1"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@sqb/builder": "^4.19.
|
|
12
|
-
"@sqb/connect": "^4.19.
|
|
13
|
-
"@sqb/oracle-dialect": "^4.19.
|
|
11
|
+
"@sqb/builder": "^4.19.6",
|
|
12
|
+
"@sqb/connect": "^4.19.6",
|
|
13
|
+
"@sqb/oracle-dialect": "^4.19.6",
|
|
14
14
|
"oracledb": ">= 6.4.0"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
@@ -63,5 +63,8 @@
|
|
|
63
63
|
"dialect",
|
|
64
64
|
"serializer",
|
|
65
65
|
"database"
|
|
66
|
-
]
|
|
66
|
+
],
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"access": "public"
|
|
69
|
+
}
|
|
67
70
|
}
|