@sqb/oracle 4.10.5 → 4.11.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/README.md +20 -9
- package/cjs/ora-connection.js +50 -50
- package/esm/ora-connection.js +50 -50
- package/package.json +8 -8
- package/types/ora-connection.d.ts +25 -1
package/README.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
1
|
<p style="text-align:center">
|
|
3
2
|
<img src="https://user-images.githubusercontent.com/3836517/32965280-1a2b63ce-cbe7-11e7-8ee1-ba47313503c5.png" width="500px" alt="SQB Logo"/>
|
|
4
3
|
</p>
|
|
5
4
|
|
|
6
5
|
<br>
|
|
7
|
-
|
|
6
|
+
|
|
8
7
|
[![NPM Version][npm-image]][npm-url]
|
|
9
8
|
[![NPM Downloads][downloads-image]][downloads-url]
|
|
10
9
|
[![Build Status][travis-image]][travis-url]
|
|
@@ -13,7 +12,6 @@
|
|
|
13
12
|
[![DevDependencies][devdependencies-image]][devdependencies-url]
|
|
14
13
|
[![Package Quality][quality-image]][quality-url]
|
|
15
14
|
|
|
16
|
-
|
|
17
15
|
## About SQB
|
|
18
16
|
|
|
19
17
|
SQB is an extensible, multi-dialect SQL query builder and Database connection wrapper for NodeJS.
|
|
@@ -25,8 +23,7 @@ SQB is an extensible, multi-dialect SQL query builder and Database connection wr
|
|
|
25
23
|
- Fast applications with low memory requirements
|
|
26
24
|
- Let applications work with large data tables efficiently
|
|
27
25
|
- Support latest JavaScript language standards
|
|
28
|
-
- Lightweight and extensible framework.
|
|
29
|
-
|
|
26
|
+
- Lightweight and extensible framework.
|
|
30
27
|
|
|
31
28
|
You can report bugs and discuss features on the [GitHub issues](https://github.com/sqbjs/sqb/issues) page
|
|
32
29
|
|
|
@@ -34,7 +31,6 @@ Thanks to all of the great [contributions](https://github.com/sqbjs/sqb/graphs/c
|
|
|
34
31
|
|
|
35
32
|
You may want to check detailed [DOCUMENTATION](https://sqbjs.github.io/sqb/)
|
|
36
33
|
|
|
37
|
-
|
|
38
34
|
## Installation
|
|
39
35
|
|
|
40
36
|
```bash
|
|
@@ -43,25 +39,40 @@ $ npm install @sqb/oracle --save
|
|
|
43
39
|
|
|
44
40
|
## Node Compatibility
|
|
45
41
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
- node >= 16.x
|
|
43
|
+
|
|
49
44
|
### License
|
|
45
|
+
|
|
50
46
|
SQB is available under [MIT](LICENSE) license.
|
|
51
47
|
|
|
52
48
|
[npm-image]: https://img.shields.io/npm/v/@sqb/oracle.svg
|
|
49
|
+
|
|
53
50
|
[npm-url]: https://npmjs.org/package/@sqb/oracle
|
|
51
|
+
|
|
54
52
|
[travis-image]: https://img.shields.io/travis/sqbjs/@sqb/oracle/master.svg
|
|
53
|
+
|
|
55
54
|
[travis-url]: https://travis-ci.org/sqbjs/@sqb/oracle
|
|
55
|
+
|
|
56
56
|
[coveralls-image]: https://img.shields.io/coveralls/sqbjs/@sqb/oracle/master.svg
|
|
57
|
+
|
|
57
58
|
[coveralls-url]: https://coveralls.io/r/sqbjs/@sqb/oracle
|
|
59
|
+
|
|
58
60
|
[downloads-image]: https://img.shields.io/npm/dm/@sqb/oracle.svg
|
|
61
|
+
|
|
59
62
|
[downloads-url]: https://npmjs.org/package/@sqb/oracle
|
|
63
|
+
|
|
60
64
|
[gitter-image]: https://badges.gitter.im/sqbjs/@sqb/oracle.svg
|
|
65
|
+
|
|
61
66
|
[gitter-url]: https://gitter.im/sqbjs/@sqb/oracle?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
|
|
67
|
+
|
|
62
68
|
[dependencies-image]: https://david-dm.org/sqbjs/@sqb/oracle/status.svg
|
|
69
|
+
|
|
63
70
|
[dependencies-url]:https://david-dm.org/sqbjs/@sqb/oracle
|
|
71
|
+
|
|
64
72
|
[devdependencies-image]: https://david-dm.org/sqbjs/@sqb/oracle/dev-status.svg
|
|
73
|
+
|
|
65
74
|
[devdependencies-url]:https://david-dm.org/sqbjs/@sqb/oracle?type=dev
|
|
75
|
+
|
|
66
76
|
[quality-image]: http://npm.packagequality.com/shield/@sqb/oracle.png
|
|
77
|
+
|
|
67
78
|
[quality-url]: http://packagequality.com/#?package=@sqb/oracle
|
package/cjs/ora-connection.js
CHANGED
|
@@ -6,58 +6,58 @@ const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
|
6
6
|
const oracledb_1 = tslib_1.__importDefault(require("oracledb"));
|
|
7
7
|
const ora_cursor_js_1 = require("./ora-cursor.js");
|
|
8
8
|
exports.dataTypeNames = {
|
|
9
|
-
[oracledb_1.default.DB_TYPE_BFILE]: 'BFILE',
|
|
10
|
-
[oracledb_1.default.DB_TYPE_BINARY_DOUBLE]: 'BINARY_DOUBLE',
|
|
11
|
-
[oracledb_1.default.DB_TYPE_BINARY_FLOAT]: 'BINARY_FLOAT',
|
|
12
|
-
[oracledb_1.default.DB_TYPE_BINARY_INTEGER]: 'BINARY_INTEGER',
|
|
13
|
-
[oracledb_1.default.DB_TYPE_BLOB]: 'BLOB',
|
|
14
|
-
[oracledb_1.default.DB_TYPE_BOOLEAN]: 'BOOLEAN',
|
|
15
|
-
[oracledb_1.default.DB_TYPE_CHAR]: 'CHAR',
|
|
16
|
-
[oracledb_1.default.DB_TYPE_CLOB]: 'CLOB',
|
|
17
|
-
[oracledb_1.default.DB_TYPE_CURSOR]: 'CURSOR',
|
|
18
|
-
[oracledb_1.default.DB_TYPE_DATE]: 'DATE',
|
|
19
|
-
[oracledb_1.default.DB_TYPE_INTERVAL_DS]: 'INTERVAL_DS',
|
|
20
|
-
[oracledb_1.default.DB_TYPE_INTERVAL_YM]: 'INTERVAL_YM',
|
|
21
|
-
[oracledb_1.default.DB_TYPE_LONG]: 'LONG',
|
|
22
|
-
[oracledb_1.default.DB_TYPE_LONG_RAW]: 'LONG_RAW',
|
|
23
|
-
[oracledb_1.default.DB_TYPE_NCHAR]: 'NCHAR',
|
|
24
|
-
[oracledb_1.default.DB_TYPE_NCLOB]: 'NCLOB',
|
|
25
|
-
[oracledb_1.default.DB_TYPE_NUMBER]: 'NUMBER',
|
|
26
|
-
[oracledb_1.default.DB_TYPE_NVARCHAR]: 'NVARCHAR',
|
|
27
|
-
[oracledb_1.default.DB_TYPE_OBJECT]: 'OBJECT',
|
|
28
|
-
[oracledb_1.default.DB_TYPE_RAW]: 'RAW',
|
|
29
|
-
[oracledb_1.default.DB_TYPE_ROWID]: 'ROWID',
|
|
30
|
-
[oracledb_1.default.DB_TYPE_TIMESTAMP]: 'TIMESTAMP',
|
|
31
|
-
[oracledb_1.default.DB_TYPE_TIMESTAMP_LTZ]: 'TIMESTAMP_LTZ',
|
|
32
|
-
[oracledb_1.default.DB_TYPE_TIMESTAMP_TZ]: 'TIMESTAMP_TZ',
|
|
33
|
-
[oracledb_1.default.DB_TYPE_VARCHAR]: 'VARCHAR'
|
|
9
|
+
[oracledb_1.default.DB_TYPE_BFILE.name]: 'BFILE',
|
|
10
|
+
[oracledb_1.default.DB_TYPE_BINARY_DOUBLE.name]: 'BINARY_DOUBLE',
|
|
11
|
+
[oracledb_1.default.DB_TYPE_BINARY_FLOAT.name]: 'BINARY_FLOAT',
|
|
12
|
+
[oracledb_1.default.DB_TYPE_BINARY_INTEGER.name]: 'BINARY_INTEGER',
|
|
13
|
+
[oracledb_1.default.DB_TYPE_BLOB.name]: 'BLOB',
|
|
14
|
+
[oracledb_1.default.DB_TYPE_BOOLEAN.name]: 'BOOLEAN',
|
|
15
|
+
[oracledb_1.default.DB_TYPE_CHAR.name]: 'CHAR',
|
|
16
|
+
[oracledb_1.default.DB_TYPE_CLOB.name]: 'CLOB',
|
|
17
|
+
[oracledb_1.default.DB_TYPE_CURSOR.name]: 'CURSOR',
|
|
18
|
+
[oracledb_1.default.DB_TYPE_DATE.name]: 'DATE',
|
|
19
|
+
[oracledb_1.default.DB_TYPE_INTERVAL_DS.name]: 'INTERVAL_DS',
|
|
20
|
+
[oracledb_1.default.DB_TYPE_INTERVAL_YM.name]: 'INTERVAL_YM',
|
|
21
|
+
[oracledb_1.default.DB_TYPE_LONG.name]: 'LONG',
|
|
22
|
+
[oracledb_1.default.DB_TYPE_LONG_RAW.name]: 'LONG_RAW',
|
|
23
|
+
[oracledb_1.default.DB_TYPE_NCHAR.name]: 'NCHAR',
|
|
24
|
+
[oracledb_1.default.DB_TYPE_NCLOB.name]: 'NCLOB',
|
|
25
|
+
[oracledb_1.default.DB_TYPE_NUMBER.name]: 'NUMBER',
|
|
26
|
+
[oracledb_1.default.DB_TYPE_NVARCHAR.name]: 'NVARCHAR',
|
|
27
|
+
[oracledb_1.default.DB_TYPE_OBJECT.name]: 'OBJECT',
|
|
28
|
+
[oracledb_1.default.DB_TYPE_RAW.name]: 'RAW',
|
|
29
|
+
[oracledb_1.default.DB_TYPE_ROWID.name]: 'ROWID',
|
|
30
|
+
[oracledb_1.default.DB_TYPE_TIMESTAMP.name]: 'TIMESTAMP',
|
|
31
|
+
[oracledb_1.default.DB_TYPE_TIMESTAMP_LTZ.name]: 'TIMESTAMP_LTZ',
|
|
32
|
+
[oracledb_1.default.DB_TYPE_TIMESTAMP_TZ.name]: 'TIMESTAMP_TZ',
|
|
33
|
+
[oracledb_1.default.DB_TYPE_VARCHAR.name]: 'VARCHAR'
|
|
34
34
|
};
|
|
35
35
|
const fetchTypeMap = {
|
|
36
|
-
[oracledb_1.default.DB_TYPE_BFILE]: 'object',
|
|
37
|
-
[oracledb_1.default.DB_TYPE_BINARY_DOUBLE]: 'number',
|
|
38
|
-
[oracledb_1.default.DB_TYPE_BINARY_FLOAT]: 'number',
|
|
39
|
-
[oracledb_1.default.DB_TYPE_BINARY_INTEGER]: 'number',
|
|
40
|
-
[oracledb_1.default.DB_TYPE_BLOB]: 'object',
|
|
41
|
-
[oracledb_1.default.DB_TYPE_BOOLEAN]: 'boolean',
|
|
42
|
-
[oracledb_1.default.DB_TYPE_CHAR]: 'string',
|
|
43
|
-
[oracledb_1.default.DB_TYPE_CLOB]: 'object',
|
|
44
|
-
[oracledb_1.default.DB_TYPE_CURSOR]: 'object',
|
|
45
|
-
[oracledb_1.default.DB_TYPE_DATE]: 'Date',
|
|
46
|
-
[oracledb_1.default.DB_TYPE_INTERVAL_DS]: 'string',
|
|
47
|
-
[oracledb_1.default.DB_TYPE_INTERVAL_YM]: 'string',
|
|
48
|
-
[oracledb_1.default.DB_TYPE_LONG]: 'number',
|
|
49
|
-
[oracledb_1.default.DB_TYPE_LONG_RAW]: 'Buffer',
|
|
50
|
-
[oracledb_1.default.DB_TYPE_NCHAR]: 'string',
|
|
51
|
-
[oracledb_1.default.DB_TYPE_NCLOB]: 'object',
|
|
52
|
-
[oracledb_1.default.DB_TYPE_NUMBER]: 'number',
|
|
53
|
-
[oracledb_1.default.DB_TYPE_NVARCHAR]: 'string',
|
|
54
|
-
[oracledb_1.default.DB_TYPE_OBJECT]: 'object',
|
|
55
|
-
[oracledb_1.default.DB_TYPE_RAW]: 'Buffer',
|
|
56
|
-
[oracledb_1.default.DB_TYPE_ROWID]: 'number',
|
|
57
|
-
[oracledb_1.default.DB_TYPE_TIMESTAMP]: 'Date',
|
|
58
|
-
[oracledb_1.default.DB_TYPE_TIMESTAMP_LTZ]: 'Date',
|
|
59
|
-
[oracledb_1.default.DB_TYPE_TIMESTAMP_TZ]: 'Date',
|
|
60
|
-
[oracledb_1.default.DB_TYPE_VARCHAR]: 'string'
|
|
36
|
+
[oracledb_1.default.DB_TYPE_BFILE.name]: 'object',
|
|
37
|
+
[oracledb_1.default.DB_TYPE_BINARY_DOUBLE.name]: 'number',
|
|
38
|
+
[oracledb_1.default.DB_TYPE_BINARY_FLOAT.name]: 'number',
|
|
39
|
+
[oracledb_1.default.DB_TYPE_BINARY_INTEGER.name]: 'number',
|
|
40
|
+
[oracledb_1.default.DB_TYPE_BLOB.name]: 'object',
|
|
41
|
+
[oracledb_1.default.DB_TYPE_BOOLEAN.name]: 'boolean',
|
|
42
|
+
[oracledb_1.default.DB_TYPE_CHAR.name]: 'string',
|
|
43
|
+
[oracledb_1.default.DB_TYPE_CLOB.name]: 'object',
|
|
44
|
+
[oracledb_1.default.DB_TYPE_CURSOR.name]: 'object',
|
|
45
|
+
[oracledb_1.default.DB_TYPE_DATE.name]: 'Date',
|
|
46
|
+
[oracledb_1.default.DB_TYPE_INTERVAL_DS.name]: 'string',
|
|
47
|
+
[oracledb_1.default.DB_TYPE_INTERVAL_YM.name]: 'string',
|
|
48
|
+
[oracledb_1.default.DB_TYPE_LONG.name]: 'number',
|
|
49
|
+
[oracledb_1.default.DB_TYPE_LONG_RAW.name]: 'Buffer',
|
|
50
|
+
[oracledb_1.default.DB_TYPE_NCHAR.name]: 'string',
|
|
51
|
+
[oracledb_1.default.DB_TYPE_NCLOB.name]: 'object',
|
|
52
|
+
[oracledb_1.default.DB_TYPE_NUMBER.name]: 'number',
|
|
53
|
+
[oracledb_1.default.DB_TYPE_NVARCHAR.name]: 'string',
|
|
54
|
+
[oracledb_1.default.DB_TYPE_OBJECT.name]: 'object',
|
|
55
|
+
[oracledb_1.default.DB_TYPE_RAW.name]: 'Buffer',
|
|
56
|
+
[oracledb_1.default.DB_TYPE_ROWID.name]: 'number',
|
|
57
|
+
[oracledb_1.default.DB_TYPE_TIMESTAMP.name]: 'Date',
|
|
58
|
+
[oracledb_1.default.DB_TYPE_TIMESTAMP_LTZ.name]: 'Date',
|
|
59
|
+
[oracledb_1.default.DB_TYPE_TIMESTAMP_TZ.name]: 'Date',
|
|
60
|
+
[oracledb_1.default.DB_TYPE_VARCHAR.name]: 'string'
|
|
61
61
|
};
|
|
62
62
|
class OraConnection {
|
|
63
63
|
constructor(conn, sessionId) {
|
package/esm/ora-connection.js
CHANGED
|
@@ -2,58 +2,58 @@ import assert from 'assert';
|
|
|
2
2
|
import oracledb from 'oracledb';
|
|
3
3
|
import { OraCursor } from './ora-cursor.js';
|
|
4
4
|
export const dataTypeNames = {
|
|
5
|
-
[oracledb.DB_TYPE_BFILE]: 'BFILE',
|
|
6
|
-
[oracledb.DB_TYPE_BINARY_DOUBLE]: 'BINARY_DOUBLE',
|
|
7
|
-
[oracledb.DB_TYPE_BINARY_FLOAT]: 'BINARY_FLOAT',
|
|
8
|
-
[oracledb.DB_TYPE_BINARY_INTEGER]: 'BINARY_INTEGER',
|
|
9
|
-
[oracledb.DB_TYPE_BLOB]: 'BLOB',
|
|
10
|
-
[oracledb.DB_TYPE_BOOLEAN]: 'BOOLEAN',
|
|
11
|
-
[oracledb.DB_TYPE_CHAR]: 'CHAR',
|
|
12
|
-
[oracledb.DB_TYPE_CLOB]: 'CLOB',
|
|
13
|
-
[oracledb.DB_TYPE_CURSOR]: 'CURSOR',
|
|
14
|
-
[oracledb.DB_TYPE_DATE]: 'DATE',
|
|
15
|
-
[oracledb.DB_TYPE_INTERVAL_DS]: 'INTERVAL_DS',
|
|
16
|
-
[oracledb.DB_TYPE_INTERVAL_YM]: 'INTERVAL_YM',
|
|
17
|
-
[oracledb.DB_TYPE_LONG]: 'LONG',
|
|
18
|
-
[oracledb.DB_TYPE_LONG_RAW]: 'LONG_RAW',
|
|
19
|
-
[oracledb.DB_TYPE_NCHAR]: 'NCHAR',
|
|
20
|
-
[oracledb.DB_TYPE_NCLOB]: 'NCLOB',
|
|
21
|
-
[oracledb.DB_TYPE_NUMBER]: 'NUMBER',
|
|
22
|
-
[oracledb.DB_TYPE_NVARCHAR]: 'NVARCHAR',
|
|
23
|
-
[oracledb.DB_TYPE_OBJECT]: 'OBJECT',
|
|
24
|
-
[oracledb.DB_TYPE_RAW]: 'RAW',
|
|
25
|
-
[oracledb.DB_TYPE_ROWID]: 'ROWID',
|
|
26
|
-
[oracledb.DB_TYPE_TIMESTAMP]: 'TIMESTAMP',
|
|
27
|
-
[oracledb.DB_TYPE_TIMESTAMP_LTZ]: 'TIMESTAMP_LTZ',
|
|
28
|
-
[oracledb.DB_TYPE_TIMESTAMP_TZ]: 'TIMESTAMP_TZ',
|
|
29
|
-
[oracledb.DB_TYPE_VARCHAR]: 'VARCHAR'
|
|
5
|
+
[oracledb.DB_TYPE_BFILE.name]: 'BFILE',
|
|
6
|
+
[oracledb.DB_TYPE_BINARY_DOUBLE.name]: 'BINARY_DOUBLE',
|
|
7
|
+
[oracledb.DB_TYPE_BINARY_FLOAT.name]: 'BINARY_FLOAT',
|
|
8
|
+
[oracledb.DB_TYPE_BINARY_INTEGER.name]: 'BINARY_INTEGER',
|
|
9
|
+
[oracledb.DB_TYPE_BLOB.name]: 'BLOB',
|
|
10
|
+
[oracledb.DB_TYPE_BOOLEAN.name]: 'BOOLEAN',
|
|
11
|
+
[oracledb.DB_TYPE_CHAR.name]: 'CHAR',
|
|
12
|
+
[oracledb.DB_TYPE_CLOB.name]: 'CLOB',
|
|
13
|
+
[oracledb.DB_TYPE_CURSOR.name]: 'CURSOR',
|
|
14
|
+
[oracledb.DB_TYPE_DATE.name]: 'DATE',
|
|
15
|
+
[oracledb.DB_TYPE_INTERVAL_DS.name]: 'INTERVAL_DS',
|
|
16
|
+
[oracledb.DB_TYPE_INTERVAL_YM.name]: 'INTERVAL_YM',
|
|
17
|
+
[oracledb.DB_TYPE_LONG.name]: 'LONG',
|
|
18
|
+
[oracledb.DB_TYPE_LONG_RAW.name]: 'LONG_RAW',
|
|
19
|
+
[oracledb.DB_TYPE_NCHAR.name]: 'NCHAR',
|
|
20
|
+
[oracledb.DB_TYPE_NCLOB.name]: 'NCLOB',
|
|
21
|
+
[oracledb.DB_TYPE_NUMBER.name]: 'NUMBER',
|
|
22
|
+
[oracledb.DB_TYPE_NVARCHAR.name]: 'NVARCHAR',
|
|
23
|
+
[oracledb.DB_TYPE_OBJECT.name]: 'OBJECT',
|
|
24
|
+
[oracledb.DB_TYPE_RAW.name]: 'RAW',
|
|
25
|
+
[oracledb.DB_TYPE_ROWID.name]: 'ROWID',
|
|
26
|
+
[oracledb.DB_TYPE_TIMESTAMP.name]: 'TIMESTAMP',
|
|
27
|
+
[oracledb.DB_TYPE_TIMESTAMP_LTZ.name]: 'TIMESTAMP_LTZ',
|
|
28
|
+
[oracledb.DB_TYPE_TIMESTAMP_TZ.name]: 'TIMESTAMP_TZ',
|
|
29
|
+
[oracledb.DB_TYPE_VARCHAR.name]: 'VARCHAR'
|
|
30
30
|
};
|
|
31
31
|
const fetchTypeMap = {
|
|
32
|
-
[oracledb.DB_TYPE_BFILE]: 'object',
|
|
33
|
-
[oracledb.DB_TYPE_BINARY_DOUBLE]: 'number',
|
|
34
|
-
[oracledb.DB_TYPE_BINARY_FLOAT]: 'number',
|
|
35
|
-
[oracledb.DB_TYPE_BINARY_INTEGER]: 'number',
|
|
36
|
-
[oracledb.DB_TYPE_BLOB]: 'object',
|
|
37
|
-
[oracledb.DB_TYPE_BOOLEAN]: 'boolean',
|
|
38
|
-
[oracledb.DB_TYPE_CHAR]: 'string',
|
|
39
|
-
[oracledb.DB_TYPE_CLOB]: 'object',
|
|
40
|
-
[oracledb.DB_TYPE_CURSOR]: 'object',
|
|
41
|
-
[oracledb.DB_TYPE_DATE]: 'Date',
|
|
42
|
-
[oracledb.DB_TYPE_INTERVAL_DS]: 'string',
|
|
43
|
-
[oracledb.DB_TYPE_INTERVAL_YM]: 'string',
|
|
44
|
-
[oracledb.DB_TYPE_LONG]: 'number',
|
|
45
|
-
[oracledb.DB_TYPE_LONG_RAW]: 'Buffer',
|
|
46
|
-
[oracledb.DB_TYPE_NCHAR]: 'string',
|
|
47
|
-
[oracledb.DB_TYPE_NCLOB]: 'object',
|
|
48
|
-
[oracledb.DB_TYPE_NUMBER]: 'number',
|
|
49
|
-
[oracledb.DB_TYPE_NVARCHAR]: 'string',
|
|
50
|
-
[oracledb.DB_TYPE_OBJECT]: 'object',
|
|
51
|
-
[oracledb.DB_TYPE_RAW]: 'Buffer',
|
|
52
|
-
[oracledb.DB_TYPE_ROWID]: 'number',
|
|
53
|
-
[oracledb.DB_TYPE_TIMESTAMP]: 'Date',
|
|
54
|
-
[oracledb.DB_TYPE_TIMESTAMP_LTZ]: 'Date',
|
|
55
|
-
[oracledb.DB_TYPE_TIMESTAMP_TZ]: 'Date',
|
|
56
|
-
[oracledb.DB_TYPE_VARCHAR]: 'string'
|
|
32
|
+
[oracledb.DB_TYPE_BFILE.name]: 'object',
|
|
33
|
+
[oracledb.DB_TYPE_BINARY_DOUBLE.name]: 'number',
|
|
34
|
+
[oracledb.DB_TYPE_BINARY_FLOAT.name]: 'number',
|
|
35
|
+
[oracledb.DB_TYPE_BINARY_INTEGER.name]: 'number',
|
|
36
|
+
[oracledb.DB_TYPE_BLOB.name]: 'object',
|
|
37
|
+
[oracledb.DB_TYPE_BOOLEAN.name]: 'boolean',
|
|
38
|
+
[oracledb.DB_TYPE_CHAR.name]: 'string',
|
|
39
|
+
[oracledb.DB_TYPE_CLOB.name]: 'object',
|
|
40
|
+
[oracledb.DB_TYPE_CURSOR.name]: 'object',
|
|
41
|
+
[oracledb.DB_TYPE_DATE.name]: 'Date',
|
|
42
|
+
[oracledb.DB_TYPE_INTERVAL_DS.name]: 'string',
|
|
43
|
+
[oracledb.DB_TYPE_INTERVAL_YM.name]: 'string',
|
|
44
|
+
[oracledb.DB_TYPE_LONG.name]: 'number',
|
|
45
|
+
[oracledb.DB_TYPE_LONG_RAW.name]: 'Buffer',
|
|
46
|
+
[oracledb.DB_TYPE_NCHAR.name]: 'string',
|
|
47
|
+
[oracledb.DB_TYPE_NCLOB.name]: 'object',
|
|
48
|
+
[oracledb.DB_TYPE_NUMBER.name]: 'number',
|
|
49
|
+
[oracledb.DB_TYPE_NVARCHAR.name]: 'string',
|
|
50
|
+
[oracledb.DB_TYPE_OBJECT.name]: 'object',
|
|
51
|
+
[oracledb.DB_TYPE_RAW.name]: 'Buffer',
|
|
52
|
+
[oracledb.DB_TYPE_ROWID.name]: 'number',
|
|
53
|
+
[oracledb.DB_TYPE_TIMESTAMP.name]: 'Date',
|
|
54
|
+
[oracledb.DB_TYPE_TIMESTAMP_LTZ.name]: 'Date',
|
|
55
|
+
[oracledb.DB_TYPE_TIMESTAMP_TZ.name]: 'Date',
|
|
56
|
+
[oracledb.DB_TYPE_VARCHAR.name]: 'string'
|
|
57
57
|
};
|
|
58
58
|
export class OraConnection {
|
|
59
59
|
constructor(conn, sessionId) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqb/oracle",
|
|
3
3
|
"description": "SQB serialization extension for Oracle database",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.11.0",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Eray Hanoglu <e.hanoglu@panates.com>",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"build:cjs": "tsc -b tsconfig-build-cjs.json",
|
|
25
25
|
"build:esm": "tsc -b tsconfig-build-esm.json",
|
|
26
26
|
"postbuild": "cp README.md package.json ../../LICENSE ../../build/oracle && cp ../../package.cjs.json ../../build/oracle/cjs/package.json",
|
|
27
|
-
"lint": "eslint .",
|
|
27
|
+
"lint": "eslint . --max-warnings=0",
|
|
28
28
|
"test": "jest",
|
|
29
29
|
"cover": "jest --collect-coverage",
|
|
30
30
|
"clean": "npm run clean:src | npm run clean:dist | npm run clean:cover",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"clean:cover": "rimraf ../../coverage/oracle"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@sqb/builder": "^4.
|
|
37
|
-
"@sqb/connect": "^4.
|
|
38
|
-
"@sqb/oracle-dialect": "^4.
|
|
39
|
-
"oracledb": ">=
|
|
36
|
+
"@sqb/builder": "^4.11.0",
|
|
37
|
+
"@sqb/connect": "^4.11.0",
|
|
38
|
+
"@sqb/oracle-dialect": "^4.11.0",
|
|
39
|
+
"oracledb": ">= 6.4.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/oracledb": "^6.
|
|
43
|
-
"oracledb": "^6.
|
|
42
|
+
"@types/oracledb": "^6.2.3",
|
|
43
|
+
"oracledb": "^6.4.0"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=16.0",
|
|
@@ -1,7 +1,31 @@
|
|
|
1
1
|
import oracledb from 'oracledb';
|
|
2
2
|
import { Adapter, QueryRequest } from '@sqb/connect';
|
|
3
3
|
export declare const dataTypeNames: {
|
|
4
|
-
|
|
4
|
+
DB_TYPE_BFILE: string;
|
|
5
|
+
DB_TYPE_BINARY_DOUBLE: string;
|
|
6
|
+
DB_TYPE_BINARY_FLOAT: string;
|
|
7
|
+
DB_TYPE_BINARY_INTEGER: string;
|
|
8
|
+
DB_TYPE_BLOB: string;
|
|
9
|
+
DB_TYPE_BOOLEAN: string;
|
|
10
|
+
DB_TYPE_CHAR: string;
|
|
11
|
+
DB_TYPE_CLOB: string;
|
|
12
|
+
DB_TYPE_CURSOR: string;
|
|
13
|
+
DB_TYPE_DATE: string;
|
|
14
|
+
DB_TYPE_INTERVAL_DS: string;
|
|
15
|
+
DB_TYPE_INTERVAL_YM: string;
|
|
16
|
+
DB_TYPE_LONG: string;
|
|
17
|
+
DB_TYPE_LONG_RAW: string;
|
|
18
|
+
DB_TYPE_NCHAR: string;
|
|
19
|
+
DB_TYPE_NCLOB: string;
|
|
20
|
+
DB_TYPE_NUMBER: string;
|
|
21
|
+
DB_TYPE_NVARCHAR: string;
|
|
22
|
+
DB_TYPE_OBJECT: string;
|
|
23
|
+
DB_TYPE_RAW: string;
|
|
24
|
+
DB_TYPE_ROWID: string;
|
|
25
|
+
DB_TYPE_TIMESTAMP: string;
|
|
26
|
+
DB_TYPE_TIMESTAMP_LTZ: string;
|
|
27
|
+
DB_TYPE_TIMESTAMP_TZ: string;
|
|
28
|
+
DB_TYPE_VARCHAR: string;
|
|
5
29
|
};
|
|
6
30
|
export declare class OraConnection implements Adapter.Connection {
|
|
7
31
|
sessionId: string;
|