oracledb 3.0.0 → 3.1.2

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 (112) hide show
  1. package/CHANGELOG.md +135 -8
  2. package/README.md +6 -4
  3. package/build/Release/oracledb-abi48-darwin-x64.node +0 -0
  4. package/build/Release/oracledb-abi48-darwin-x64.node-buildinfo.txt +1 -0
  5. package/build/Release/oracledb-abi48-linux-x64.node +0 -0
  6. package/build/Release/oracledb-abi48-linux-x64.node-buildinfo.txt +1 -0
  7. package/build/Release/oracledb-abi48-win32-x64.node +0 -0
  8. package/build/Release/oracledb-abi48-win32-x64.node-buildinfo.txt +1 -0
  9. package/build/Release/oracledb-abi57-darwin-x64.node +0 -0
  10. package/build/Release/oracledb-abi57-darwin-x64.node-buildinfo.txt +1 -0
  11. package/build/Release/oracledb-abi57-linux-x64.node +0 -0
  12. package/build/Release/oracledb-abi57-linux-x64.node-buildinfo.txt +1 -0
  13. package/build/Release/oracledb-abi57-win32-x64.node +0 -0
  14. package/build/Release/oracledb-abi57-win32-x64.node-buildinfo.txt +1 -0
  15. package/build/Release/oracledb-abi64-darwin-x64.node +0 -0
  16. package/build/Release/oracledb-abi64-darwin-x64.node-buildinfo.txt +1 -0
  17. package/build/Release/oracledb-abi64-linux-x64.node +0 -0
  18. package/build/Release/oracledb-abi64-linux-x64.node-buildinfo.txt +1 -0
  19. package/build/Release/oracledb-abi64-win32-x64.node +0 -0
  20. package/build/Release/oracledb-abi64-win32-x64.node-buildinfo.txt +1 -0
  21. package/build/Release/oracledb-abi67-darwin-x64.node +0 -0
  22. package/build/Release/oracledb-abi67-darwin-x64.node-buildinfo.txt +1 -0
  23. package/build/Release/oracledb-abi67-linux-x64.node +0 -0
  24. package/build/Release/oracledb-abi67-linux-x64.node-buildinfo.txt +1 -0
  25. package/build/Release/oracledb-abi67-win32-x64.node +0 -0
  26. package/build/Release/oracledb-abi67-win32-x64.node-buildinfo.txt +1 -0
  27. package/lib/connection.js +18 -4
  28. package/lib/oracledb.js +44 -92
  29. package/lib/pool.js +36 -2
  30. package/lib/sodaCollection.js +1 -1
  31. package/lib/sodaDatabase.js +1 -1
  32. package/lib/util.js +82 -5
  33. package/package/README.md +32 -101
  34. package/package/install.js +139 -0
  35. package/package/prunebinaries.js +51 -0
  36. package/package.json +4 -11
  37. package/binding.gyp +0 -162
  38. package/lib/rel.txt +0 -1
  39. package/odpi/.npmignore +0 -4
  40. package/odpi/LICENSE.md +0 -218
  41. package/odpi/README.md +0 -61
  42. package/odpi/embed/README.md +0 -4
  43. package/odpi/embed/dpi.c +0 -50
  44. package/odpi/include/dpi.h +0 -1748
  45. package/odpi/src/dpiConn.c +0 -2089
  46. package/odpi/src/dpiContext.c +0 -296
  47. package/odpi/src/dpiData.c +0 -797
  48. package/odpi/src/dpiDebug.c +0 -184
  49. package/odpi/src/dpiDeqOptions.c +0 -370
  50. package/odpi/src/dpiEnqOptions.c +0 -174
  51. package/odpi/src/dpiEnv.c +0 -189
  52. package/odpi/src/dpiError.c +0 -204
  53. package/odpi/src/dpiErrorMessages.h +0 -86
  54. package/odpi/src/dpiGen.c +0 -303
  55. package/odpi/src/dpiGlobal.c +0 -292
  56. package/odpi/src/dpiHandleList.c +0 -117
  57. package/odpi/src/dpiHandlePool.c +0 -118
  58. package/odpi/src/dpiImpl.h +0 -1707
  59. package/odpi/src/dpiLob.c +0 -506
  60. package/odpi/src/dpiMsgProps.c +0 -386
  61. package/odpi/src/dpiObject.c +0 -897
  62. package/odpi/src/dpiObjectAttr.c +0 -115
  63. package/odpi/src/dpiObjectType.c +0 -326
  64. package/odpi/src/dpiOci.c +0 -3527
  65. package/odpi/src/dpiOracleType.c +0 -492
  66. package/odpi/src/dpiPool.c +0 -549
  67. package/odpi/src/dpiRowid.c +0 -136
  68. package/odpi/src/dpiSodaColl.c +0 -685
  69. package/odpi/src/dpiSodaCollCursor.c +0 -143
  70. package/odpi/src/dpiSodaDb.c +0 -432
  71. package/odpi/src/dpiSodaDoc.c +0 -230
  72. package/odpi/src/dpiSodaDocCursor.c +0 -143
  73. package/odpi/src/dpiStmt.c +0 -1797
  74. package/odpi/src/dpiSubscr.c +0 -674
  75. package/odpi/src/dpiUtils.c +0 -410
  76. package/odpi/src/dpiVar.c +0 -1794
  77. package/package/MAKEPKG.BAT +0 -156
  78. package/package/Makefile +0 -85
  79. package/package/createpackage.js +0 -186
  80. package/package/extractpackage.js +0 -76
  81. package/package/getversion.js +0 -37
  82. package/package/oracledbinstall.js +0 -497
  83. package/package/package.json +0 -54
  84. package/package/util.js +0 -286
  85. package/src/njsCommon.cpp +0 -1055
  86. package/src/njsCommon.h +0 -484
  87. package/src/njsConnection.cpp +0 -2926
  88. package/src/njsConnection.h +0 -227
  89. package/src/njsIntLob.cpp +0 -618
  90. package/src/njsIntLob.h +0 -179
  91. package/src/njsMessages.cpp +0 -122
  92. package/src/njsMessages.h +0 -118
  93. package/src/njsOracle.cpp +0 -1274
  94. package/src/njsOracle.h +0 -237
  95. package/src/njsPool.cpp +0 -482
  96. package/src/njsPool.h +0 -132
  97. package/src/njsResultSet.cpp +0 -478
  98. package/src/njsResultSet.h +0 -120
  99. package/src/njsSodaCollection.cpp +0 -507
  100. package/src/njsSodaCollection.h +0 -128
  101. package/src/njsSodaDatabase.cpp +0 -335
  102. package/src/njsSodaDatabase.h +0 -108
  103. package/src/njsSodaDocCursor.cpp +0 -203
  104. package/src/njsSodaDocCursor.h +0 -94
  105. package/src/njsSodaDocument.cpp +0 -412
  106. package/src/njsSodaDocument.h +0 -105
  107. package/src/njsSodaOperation.cpp +0 -557
  108. package/src/njsSodaOperation.h +0 -123
  109. package/src/njsSubscription.cpp +0 -388
  110. package/src/njsSubscription.h +0 -111
  111. package/src/njsUtils.cpp +0 -158
  112. package/src/njsUtils.h +0 -68
package/odpi/LICENSE.md DELETED
@@ -1,218 +0,0 @@
1
- Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
2
-
3
- This program is free software: you can modify it and/or redistribute it under
4
- the terms of:
5
-
6
- (i) the Universal Permissive License v 1.0 or at your option, any
7
- later version (<http://oss.oracle.com/licenses/upl>); and/or
8
-
9
- (ii) the Apache License v 2.0. (<http://www.apache.org/licenses/LICENSE-2.0>)
10
-
11
-
12
- The Universal Permissive License (UPL), Version 1.0
13
- ===================================================
14
-
15
- Subject to the condition set forth below, permission is hereby granted to any
16
- person obtaining a copy of this software, associated documentation and/or data
17
- (collectively the "Software"), free of charge and under any and all copyright
18
- rights in the Software, and any and all patent rights owned or freely
19
- licensable by each licensor hereunder covering either (i) the unmodified
20
- Software as contributed to or provided by such licensor, or (ii) the Larger
21
- Works (as defined below), to deal in both
22
-
23
- (a) the Software, and
24
-
25
- (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
26
- one is included with the Software (each a "Larger Work" to which the
27
- Software is contributed by such licensors),
28
-
29
- without restriction, including without limitation the rights to copy, create
30
- derivative works of, display, perform, and distribute the Software and make,
31
- use, sell, offer for sale, import, export, have made, and have sold the
32
- Software and the Larger Work(s), and to sublicense the foregoing rights on
33
- either these or other terms.
34
-
35
- This license is subject to the following condition:
36
-
37
- The above copyright notice and either this complete permission notice or at a
38
- minimum a reference to the UPL must be included in all copies or substantial
39
- portions of the Software.
40
-
41
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
47
- SOFTWARE.
48
-
49
-
50
- Apache License
51
- ==============
52
-
53
- Version 2.0, January 2004
54
-
55
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
56
-
57
- 1. **Definitions**.
58
-
59
- "License" shall mean the terms and conditions for use, reproduction, and
60
- distribution as defined by Sections 1 through 9 of this document.
61
-
62
- "Licensor" shall mean the copyright owner or entity authorized by the
63
- copyright owner that is granting the License.
64
-
65
- "Legal Entity" shall mean the union of the acting entity and all other
66
- entities that control, are controlled by, or are under common control with
67
- that entity. For the purposes of this definition, "control" means (i) the
68
- power, direct or indirect, to cause the direction or management of such
69
- entity, whether by contract or otherwise, or (ii) ownership of fifty
70
- percent (50%) or more of the outstanding shares, or (iii) beneficial
71
- ownership of such entity.
72
-
73
- "You" (or "Your") shall mean an individual or Legal Entity exercising
74
- permissions granted by this License.
75
-
76
- "Source" form shall mean the preferred form for making modifications,
77
- including but not limited to software source code, documentation source,
78
- and configuration files.
79
-
80
- "Object" form shall mean any form resulting from mechanical transformation
81
- or translation of a Source form, including but not limited to compiled
82
- object code, generated documentation, and conversions to other media types.
83
-
84
- "Work" shall mean the work of authorship, whether in Source or Object form,
85
- made available under the License, as indicated by a copyright notice that
86
- is included in or attached to the work (an example is provided in the
87
- Appendix below).
88
-
89
- "Derivative Works" shall mean any work, whether in Source or Object form,
90
- that is based on (or derived from) the Work and for which the editorial
91
- revisions, annotations, elaborations, or other modifications represent, as
92
- a whole, an original work of authorship. For the purposes of this License,
93
- Derivative Works shall not include works that remain separable from, or
94
- merely link (or bind by name) to the interfaces of, the Work and Derivative
95
- Works thereof.
96
-
97
- "Contribution" shall mean any work of authorship, including the original
98
- version of the Work and any modifications or additions to that Work or
99
- Derivative Works thereof, that is intentionally submitted to Licensor for
100
- inclusion in the Work by the copyright owner or by an individual or Legal
101
- Entity authorized to submit on behalf of the copyright owner. For the
102
- purposes of this definition, "submitted" means any form of electronic,
103
- verbal, or written communication sent to the Licensor or its
104
- representatives, including but not limited to communication on electronic
105
- mailing lists, source code control systems, and issue tracking systems that
106
- are managed by, or on behalf of, the Licensor for the purpose of discussing
107
- and improving the Work, but excluding communication that is conspicuously
108
- marked or otherwise designated in writing by the copyright owner as "Not a
109
- Contribution."
110
-
111
- "Contributor" shall mean Licensor and any individual or Legal Entity on
112
- behalf of whom a Contribution has been received by Licensor and
113
- subsequently incorporated within the Work.
114
-
115
- 2. **Grant of Copyright License.** Subject to the terms and conditions of this
116
- License, each Contributor hereby grants to You a perpetual, worldwide,
117
- non-exclusive, no-charge, royalty-free, irrevocable copyright license to
118
- reproduce, prepare Derivative Works of, publicly display, publicly perform,
119
- sublicense, and distribute the Work and such Derivative Works in Source or
120
- Object form.
121
-
122
- 3. **Grant of Patent License.** Subject to the terms and conditions of this
123
- License, each Contributor hereby grants to You a perpetual, worldwide,
124
- non-exclusive, no-charge, royalty-free, irrevocable (except as stated in
125
- this section) patent license to make, have made, use, offer to sell, sell,
126
- import, and otherwise transfer the Work, where such license applies only to
127
- those patent claims licensable by such Contributor that are necessarily
128
- infringed by their Contribution(s) alone or by combination of their
129
- Contribution(s) with the Work to which such Contribution(s) was submitted.
130
- If You institute patent litigation against any entity (including a
131
- cross-claim or counterclaim in a lawsuit) alleging that the Work or a
132
- Contribution incorporated within the Work constitutes direct or
133
- contributory patent infringement, then any patent licenses granted to You
134
- under this License for that Work shall terminate as of the date such
135
- litigation is filed.
136
-
137
- 4. **Redistribution.** You may reproduce and distribute copies of the Work or
138
- Derivative Works thereof in any medium, with or without modifications, and
139
- in Source or Object form, provided that You meet the following conditions:
140
-
141
- 1. You must give any other recipients of the Work or Derivative Works a
142
- copy of this License; and
143
-
144
- 2. You must cause any modified files to carry prominent notices stating
145
- that You changed the files; and
146
-
147
- 3. You must retain, in the Source form of any Derivative Works that You
148
- distribute, all copyright, patent, trademark, and attribution notices
149
- from the Source form of the Work, excluding those notices that do not
150
- pertain to any part of the Derivative Works; and
151
-
152
- 4. If the Work includes a "NOTICE" text file as part of its distribution,
153
- then any Derivative Works that You distribute must include a readable
154
- copy of the attribution notices contained within such NOTICE file,
155
- excluding those notices that do not pertain to any part of the
156
- Derivative Works, in at least one of the following places: within a
157
- NOTICE text file distributed as part of the Derivative Works; within
158
- the Source form or documentation, if provided along with the Derivative
159
- Works; or, within a display generated by the Derivative Works, if and
160
- wherever such third-party notices normally appear. The contents of the
161
- NOTICE file are for informational purposes only and do not modify the
162
- License. You may add Your own attribution notices within Derivative
163
- Works that You distribute, alongside or as an addendum to the NOTICE
164
- text from the Work, provided that such additional attribution notices
165
- cannot be construed as modifying the License.
166
-
167
- You may add Your own copyright statement to Your modifications and may
168
- provide additional or different license terms and conditions for use,
169
- reproduction, or distribution of Your modifications, or for any such
170
- Derivative Works as a whole, provided Your use, reproduction, and
171
- distribution of the Work otherwise complies with the conditions stated
172
- in this License.
173
-
174
- 5. **Submission of Contributions.** Unless You explicitly state otherwise, any
175
- Contribution intentionally submitted for inclusion in the Work by You to
176
- the Licensor shall be under the terms and conditions of this License,
177
- without any additional terms or conditions. Notwithstanding the above,
178
- nothing herein shall supersede or modify the terms of any separate license
179
- agreement you may have executed with Licensor regarding such Contributions.
180
-
181
- 6. **Trademarks.** This License does not grant permission to use the trade
182
- names, trademarks, service marks, or product names of the Licensor, except
183
- as required for reasonable and customary use in describing the origin of
184
- the Work and reproducing the content of the NOTICE file.
185
-
186
- 7. **Disclaimer of Warranty.** Unless required by applicable law or agreed to
187
- in writing, Licensor provides the Work (and each Contributor provides its
188
- Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
189
- KIND, either express or implied, including, without limitation, any
190
- warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or
191
- FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for
192
- determining the appropriateness of using or redistributing the Work and
193
- assume any risks associated with Your exercise of permissions under this
194
- License.
195
-
196
- 8. **Limitation of Liability.** In no event and under no legal theory, whether
197
- in tort (including negligence), contract, or otherwise, unless required by
198
- applicable law (such as deliberate and grossly negligent acts) or agreed to
199
- in writing, shall any Contributor be liable to You for damages, including
200
- any direct, indirect, special, incidental, or consequential damages of any
201
- character arising as a result of this License or out of the use or
202
- inability to use the Work (including but not limited to damages for loss of
203
- goodwill, work stoppage, computer failure or malfunction, or any and all
204
- other commercial damages or losses), even if such Contributor has been
205
- advised of the possibility of such damages.
206
-
207
- 9. **Accepting Warranty or Additional Liability.** While redistributing the
208
- Work or Derivative Works thereof, You may choose to offer, and charge a fee
209
- for, acceptance of support, warranty, indemnity, or other liability
210
- obligations and/or rights consistent with this License. However, in
211
- accepting such obligations, You may act only on Your own behalf and on Your
212
- sole responsibility, not on behalf of any other Contributor, and only if
213
- You agree to indemnify, defend, and hold each Contributor harmless for any
214
- liability incurred by, or claims asserted against, such Contributor by
215
- reason of your accepting any such warranty or additional liability.
216
-
217
- END OF TERMS AND CONDITIONS
218
-
package/odpi/README.md DELETED
@@ -1,61 +0,0 @@
1
- # ODPI-C version 3.0
2
-
3
- Oracle Database Programming Interface for C (ODPI-C) is an open source library
4
- of C code that simplifies access to Oracle Database for applications written in
5
- C or C++. It is a wrapper over [Oracle Call Interface
6
- (OCI)](http://www.oracle.com/technetwork/database/features/oci/index.html) that
7
- makes applications and language interfaces easier to develop.
8
-
9
- ODPI-C supports basic and advanced features of Oracle Database and
10
- Oracle Client. See the [homepage](https://oracle.github.io/odpi/) for
11
- a list.
12
-
13
- ## Installation
14
-
15
- See [ODPI-C Installation](https://oracle.github.io/odpi/doc/installation.html).
16
-
17
- ## Documentation
18
-
19
- See the [ODPI-C Documentation](https://oracle.github.io/odpi/doc/index.html) and
20
- [Release Notes](https://oracle.github.io/odpi/doc/releasenotes.html).
21
-
22
- ## Samples
23
-
24
- See [/samples](https://github.com/oracle/odpi/tree/master/samples).
25
-
26
- ## Help
27
-
28
- Please report bugs and ask questions using [GitHub issues](https://github.com/oracle/odpi/issues).
29
-
30
- ## Tests
31
-
32
- See [/test](https://github.com/oracle/odpi/tree/master/test).
33
-
34
- ## Contributing
35
-
36
- See [CONTRIBUTING](https://github.com/oracle/odpi/blob/master/CONTRIBUTING.md).
37
-
38
- ## Drivers Using ODPI-C
39
-
40
- Oracle Drivers:
41
- * [cx_Oracle](https://oracle.github.io/python-cx_Oracle) Python interface.
42
- * [node-oracledb](https://oracle.github.io/node-oracledb) Node.js module.
43
-
44
- Third-party Drivers:
45
- * [go-goracle](https://gopkg.in/goracle.v2) Go Driver.
46
- * [mirmir](https://github.com/rustyhorde/mimir) Rust Bindings.
47
- * [odpic-raw](https://github.com/leptonyu/odpic-raw) Haskell Raw Bindings.
48
- * [ruby-ODPI ](https://github.com/kubo/ruby-odpi) Ruby Interface.
49
- * [rust-oracle ](https://github.com/kubo/rust-oracle) Driver for Rust.
50
-
51
- ## License
52
-
53
- Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
54
-
55
- This program is free software: you can modify it and/or redistribute it under
56
- the terms of:
57
-
58
- (i) the Universal Permissive License v 1.0 or at your option, any
59
- later version (<http://oss.oracle.com/licenses/upl>); and/or
60
-
61
- (ii) the Apache License v 2.0. (<http://www.apache.org/licenses/LICENSE-2.0>)
@@ -1,4 +0,0 @@
1
- This directory contains the file dpi.c which can be used to embed ODPI-C
2
- within your project without having to manage the individual files that make up
3
- the library. The files can also be compiled independently if that is preferred.
4
-
package/odpi/embed/dpi.c DELETED
@@ -1,50 +0,0 @@
1
- //-----------------------------------------------------------------------------
2
- // Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
3
- // This program is free software: you can modify it and/or redistribute it
4
- // under the terms of:
5
- //
6
- // (i) the Universal Permissive License v 1.0 or at your option, any
7
- // later version (http://oss.oracle.com/licenses/upl); and/or
8
- //
9
- // (ii) the Apache License v 2.0. (http://www.apache.org/licenses/LICENSE-2.0)
10
- //-----------------------------------------------------------------------------
11
-
12
- //-----------------------------------------------------------------------------
13
- // dpi.c
14
- // Include this file in your project in order to embed ODPI-C source without
15
- // having to compile files individually. Only the definitions in the file
16
- // include/dpi.h are intended to be used publicly. Each file can also be
17
- // compiled independently if that is preferable.
18
- //-----------------------------------------------------------------------------
19
-
20
- #include "../src/dpiConn.c"
21
- #include "../src/dpiContext.c"
22
- #include "../src/dpiData.c"
23
- #include "../src/dpiDebug.c"
24
- #include "../src/dpiDeqOptions.c"
25
- #include "../src/dpiEnqOptions.c"
26
- #include "../src/dpiEnv.c"
27
- #include "../src/dpiError.c"
28
- #include "../src/dpiGen.c"
29
- #include "../src/dpiGlobal.c"
30
- #include "../src/dpiHandleList.c"
31
- #include "../src/dpiHandlePool.c"
32
- #include "../src/dpiLob.c"
33
- #include "../src/dpiMsgProps.c"
34
- #include "../src/dpiObjectAttr.c"
35
- #include "../src/dpiObject.c"
36
- #include "../src/dpiObjectType.c"
37
- #include "../src/dpiOci.c"
38
- #include "../src/dpiOracleType.c"
39
- #include "../src/dpiPool.c"
40
- #include "../src/dpiRowid.c"
41
- #include "../src/dpiSodaColl.c"
42
- #include "../src/dpiSodaCollCursor.c"
43
- #include "../src/dpiSodaDb.c"
44
- #include "../src/dpiSodaDoc.c"
45
- #include "../src/dpiSodaDocCursor.c"
46
- #include "../src/dpiStmt.c"
47
- #include "../src/dpiSubscr.c"
48
- #include "../src/dpiUtils.c"
49
- #include "../src/dpiVar.c"
50
-