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
@@ -1,227 +0,0 @@
1
- /* Copyright (c) 2015, 2017, Oracle and/or its affiliates.
2
- All rights reserved. */
3
-
4
- /******************************************************************************
5
- *
6
- * You may not use the identified files except in compliance with the Apache
7
- * License, Version 2.0 (the "License.")
8
- *
9
- * You may obtain a copy of the License at
10
- * http://www.apache.org/licenses/LICENSE-2.0.
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- *
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- *
19
- * This file uses NAN:
20
- *
21
- * Copyright (c) 2015 NAN contributors
22
- *
23
- * NAN contributors listed at https://github.com/rvagg/nan#contributors
24
- *
25
- * Permission is hereby granted, free of charge, to any person obtaining
26
- * a copy of this software and associated documentation files (the
27
- * "Software"), to deal in the Software without restriction, including
28
- * without limitation the rights to use, copy, modify, merge, publish,
29
- * distribute, sublicense, and/or sell copies of the Software, and to
30
- * permit persons to whom the Software is furnished to do so, subject to
31
- * the following conditions:
32
- *
33
- * The above copyright notice and this permission notice shall be
34
- * included in all copies or substantial portions of the Software.
35
- *
36
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
38
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
40
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
41
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
42
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
43
- *
44
- * NAME
45
- * njsConnection.h
46
- *
47
- * DESCRIPTION
48
- * Connection class
49
- *
50
- *****************************************************************************/
51
-
52
- #ifndef __NJSCONNECTION_H__
53
- #define __NJSCONNECTION_H__
54
-
55
- #include <node.h>
56
- #include <string>
57
- #include "njsOracle.h"
58
-
59
- using namespace v8;
60
- using namespace node;
61
-
62
- class Connection;
63
-
64
-
65
- //-----------------------------------------------------------------------------
66
- // njsConnection
67
- // Class exposed to JS for handling connections to the database.
68
- //-----------------------------------------------------------------------------
69
- class njsConnection: public njsCommon {
70
- public:
71
- static Local<Object> CreateFromBaton(njsBaton *baton);
72
- static Local<Value> GetMetaData(njsVariable *vars, uint32_t numVars,
73
- bool extendedMetaData);
74
- static bool GetScalarValueFromVar(njsBaton *baton, njsVariable *var,
75
- njsVariableBuffer *buffer, uint32_t pos, Local<Value> &value);
76
- static bool ProcessExecuteBinds(Local<Object> binds, njsBaton *baton);
77
- static bool ProcessQueryVars(njsBaton* baton, dpiStmt *dpiStmtHandle,
78
- njsVariable *vars, uint32_t numVars);
79
- static bool ProcessVars(njsBaton *baton, njsVariable *vars,
80
- uint32_t numVars, uint32_t numElements);
81
- static void Init(Local<Object> target);
82
- bool IsValid() const { return (dpiConnHandle) ? true : false; }
83
- njsErrorType GetInvalidErrorType() const { return errInvalidConnection; }
84
- dpiConn* GetDPIConnHandle () { return dpiConnHandle ; }
85
-
86
- private:
87
- njsConnection() : dpiConnHandle(NULL) {}
88
- ~njsConnection() {
89
- jsOracledb.Reset();
90
- if (dpiConnHandle) {
91
- dpiConn_release(dpiConnHandle);
92
- dpiConnHandle = NULL;
93
- }
94
- }
95
-
96
- static NAN_METHOD(New);
97
-
98
- // Execute Method on Connection class
99
- static NAN_METHOD(Execute);
100
- static void Async_Execute(njsBaton *baton);
101
- static void Async_AfterExecute(njsBaton *baton, Local<Value> argv[]);
102
-
103
- // ExecuteMany Method on Connection class
104
- static NAN_METHOD(ExecuteMany);
105
- static void Async_ExecuteMany(njsBaton *baton);
106
- static void Async_AfterExecuteMany(njsBaton *baton, Local<Value> argv[]);
107
-
108
- // GetStatementInfo Method on Connection class
109
- static NAN_METHOD(GetStatementInfo);
110
- static void Async_GetStatementInfo(njsBaton *baton);
111
- static void Async_AfterGetStatementInfo(njsBaton *baton,
112
- Local<Value> argv[]);
113
-
114
- // Close Method on Connection class
115
- static NAN_METHOD(Close);
116
- static void Async_Close(njsBaton *baton);
117
- static void Async_AfterClose(njsBaton *baton, Local<Value> argv[]);
118
-
119
- // Commit Method on Connection class
120
- static NAN_METHOD(Commit);
121
- static void Async_Commit(njsBaton *baton);
122
-
123
- // Rollback Method on Connection class
124
- static NAN_METHOD(Rollback);
125
- static void Async_Rollback(njsBaton *baton);
126
-
127
- // Break Method on Connection class
128
- static NAN_METHOD(Break);
129
- static void Async_Break(njsBaton *baton);
130
-
131
- // CreateLob Method on Connection class
132
- static NAN_METHOD(CreateLob);
133
- static void Async_CreateLob(njsBaton *baton);
134
- static void Async_AfterCreateLob(njsBaton *baton, Local<Value> argv[]);
135
-
136
- // ChangePassword Method on Connection class
137
- static NAN_METHOD(ChangePassword);
138
- static void Async_ChangePassword(njsBaton *baton);
139
-
140
- // Ping Method on Connection class
141
- static NAN_METHOD(Ping);
142
- static void Async_Ping(njsBaton *baton);
143
-
144
- // Subscribe Method on Connection class
145
- static NAN_METHOD(Subscribe);
146
- static void Async_Subscribe(njsBaton *baton);
147
- static void Async_AfterSubscribe(njsBaton *baton, Local<Value> argv[]);
148
-
149
- // Unsubscribe Method on Connection class
150
- static NAN_METHOD(Unsubscribe);
151
- static void Async_Unsubscribe(njsBaton *baton);
152
-
153
- // GetSodaDatabase Method on Connection class
154
- static NAN_METHOD(GetSodaDatabase);
155
-
156
- // Define Getter Accessors to properties
157
- static NAN_GETTER(GetStmtCacheSize);
158
- static NAN_GETTER(GetClientId);
159
- static NAN_GETTER(GetModule);
160
- static NAN_GETTER(GetAction);
161
- static NAN_GETTER(GetOracleServerVersion);
162
- static NAN_GETTER(GetOracleServerVersionString);
163
- static NAN_GETTER(GetCallTimeout);
164
-
165
- // Define Setter Accessors to properties
166
- static NAN_SETTER(SetStmtCacheSize);
167
- static NAN_SETTER(SetClientId);
168
- static NAN_SETTER(SetModule);
169
- static NAN_SETTER(SetAction);
170
- static NAN_SETTER(SetOracleServerVersion);
171
- static NAN_SETTER(SetOracleServerVersionString);
172
- static NAN_SETTER(SetCallTimeout);
173
-
174
- // internal methods
175
- static bool CreateVarBuffer(njsVariable *var, njsBaton *baton);
176
- static bool GetBindTypeAndSizeFromValue(njsVariable *var,
177
- Local<Value> value, njsDataType *bindType, uint32_t *maxSize,
178
- njsBaton *baton, bool scalarOnly = false);
179
- static bool GetExecuteOutBinds(Local<Value> &outBinds, njsBaton *baton);
180
- static bool GetExecuteManyOutBinds(Local<Value> &outBinds,
181
- uint32_t numOutBinds, njsBaton *baton);
182
- static bool GetOutBinds(Local<Value> &outBinds, uint32_t numOutBinds,
183
- uint32_t pos, njsBaton *baton);
184
- static bool GetArrayValueFromVar(njsBaton *baton, njsVariable *var,
185
- uint32_t pos, Local<Value> &value);
186
- static bool InitBindVars(Local<Object> bindObj, Local<Array> bindNames,
187
- njsBaton *baton);
188
- static bool MapByName(njsBaton *baton, dpiQueryInfo *queryInfo,
189
- dpiOracleTypeNum &targetType);
190
- static bool MapByType(njsBaton *baton, dpiQueryInfo *queryInfo,
191
- dpiOracleTypeNum &targetType);
192
- static bool PrepareAndBind(njsBaton* baton);
193
- static bool ProcessBindValue(Local<Value> bindValue, njsVariable *var,
194
- njsBaton *baton);
195
- static bool ProcessExecuteManyBinds(Local<Array> binds,
196
- Local<Object> options, njsBaton *baton);
197
- static bool ProcessExecuteOptions(Local<Object> options, njsBaton *baton);
198
- static bool ProcessExecuteManyOptions(Local<Object> options,
199
- njsBaton *baton);
200
- static bool ProcessScalarBindValue(Local<Value> bindValue,
201
- njsVariable *var, uint32_t pos, bool inExecuteMany,
202
- njsBaton *baton);
203
- static bool ProcessSubscriptionOptions(Local<Object> options,
204
- njsBaton *baton);
205
- static bool ProcessVarBuffer(njsBaton *baton, njsVariable *var,
206
- njsVariableBuffer *buffer);
207
- static bool ScanExecuteBinds(Local<Object> binds, Local<Array> bindNames,
208
- njsBaton *baton);
209
- static bool ScanExecuteBindUnit(Local<Object> bindUnit, njsVariable *var,
210
- bool inExecuteMany, njsBaton *baton);
211
- static bool ScanExecuteManyBinds(Local<Array> binds,
212
- Local<Array> bindNames, njsBaton *baton);
213
- static void SetTextAttribute(Nan::NAN_SETTER_ARGS_TYPE args,
214
- const char *attributeName, Local<Value> value,
215
- int (*setter)(dpiConn*, const char*, uint32_t));
216
- static bool TransferExecuteManyBinds(Local<Array> binds,
217
- Local<Array> bindNames, njsBaton *baton);
218
-
219
- static Nan::Persistent<FunctionTemplate> connectionTemplate_s;
220
-
221
- dpiConn *dpiConnHandle;
222
- Nan::Persistent<Object> jsOracledb;
223
- };
224
-
225
-
226
- #endif
227
-