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.
- package/CHANGELOG.md +135 -8
- package/README.md +6 -4
- package/build/Release/oracledb-abi48-darwin-x64.node +0 -0
- package/build/Release/oracledb-abi48-darwin-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-abi48-linux-x64.node +0 -0
- package/build/Release/oracledb-abi48-linux-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-abi48-win32-x64.node +0 -0
- package/build/Release/oracledb-abi48-win32-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-abi57-darwin-x64.node +0 -0
- package/build/Release/oracledb-abi57-darwin-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-abi57-linux-x64.node +0 -0
- package/build/Release/oracledb-abi57-linux-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-abi57-win32-x64.node +0 -0
- package/build/Release/oracledb-abi57-win32-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-abi64-darwin-x64.node +0 -0
- package/build/Release/oracledb-abi64-darwin-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-abi64-linux-x64.node +0 -0
- package/build/Release/oracledb-abi64-linux-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-abi64-win32-x64.node +0 -0
- package/build/Release/oracledb-abi64-win32-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-abi67-darwin-x64.node +0 -0
- package/build/Release/oracledb-abi67-darwin-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-abi67-linux-x64.node +0 -0
- package/build/Release/oracledb-abi67-linux-x64.node-buildinfo.txt +1 -0
- package/build/Release/oracledb-abi67-win32-x64.node +0 -0
- package/build/Release/oracledb-abi67-win32-x64.node-buildinfo.txt +1 -0
- package/lib/connection.js +18 -4
- package/lib/oracledb.js +44 -92
- package/lib/pool.js +36 -2
- package/lib/sodaCollection.js +1 -1
- package/lib/sodaDatabase.js +1 -1
- package/lib/util.js +82 -5
- package/package/README.md +32 -101
- package/package/install.js +139 -0
- package/package/prunebinaries.js +51 -0
- package/package.json +4 -11
- package/binding.gyp +0 -162
- package/lib/rel.txt +0 -1
- package/odpi/.npmignore +0 -4
- package/odpi/LICENSE.md +0 -218
- package/odpi/README.md +0 -61
- package/odpi/embed/README.md +0 -4
- package/odpi/embed/dpi.c +0 -50
- package/odpi/include/dpi.h +0 -1748
- package/odpi/src/dpiConn.c +0 -2089
- package/odpi/src/dpiContext.c +0 -296
- package/odpi/src/dpiData.c +0 -797
- package/odpi/src/dpiDebug.c +0 -184
- package/odpi/src/dpiDeqOptions.c +0 -370
- package/odpi/src/dpiEnqOptions.c +0 -174
- package/odpi/src/dpiEnv.c +0 -189
- package/odpi/src/dpiError.c +0 -204
- package/odpi/src/dpiErrorMessages.h +0 -86
- package/odpi/src/dpiGen.c +0 -303
- package/odpi/src/dpiGlobal.c +0 -292
- package/odpi/src/dpiHandleList.c +0 -117
- package/odpi/src/dpiHandlePool.c +0 -118
- package/odpi/src/dpiImpl.h +0 -1707
- package/odpi/src/dpiLob.c +0 -506
- package/odpi/src/dpiMsgProps.c +0 -386
- package/odpi/src/dpiObject.c +0 -897
- package/odpi/src/dpiObjectAttr.c +0 -115
- package/odpi/src/dpiObjectType.c +0 -326
- package/odpi/src/dpiOci.c +0 -3527
- package/odpi/src/dpiOracleType.c +0 -492
- package/odpi/src/dpiPool.c +0 -549
- package/odpi/src/dpiRowid.c +0 -136
- package/odpi/src/dpiSodaColl.c +0 -685
- package/odpi/src/dpiSodaCollCursor.c +0 -143
- package/odpi/src/dpiSodaDb.c +0 -432
- package/odpi/src/dpiSodaDoc.c +0 -230
- package/odpi/src/dpiSodaDocCursor.c +0 -143
- package/odpi/src/dpiStmt.c +0 -1797
- package/odpi/src/dpiSubscr.c +0 -674
- package/odpi/src/dpiUtils.c +0 -410
- package/odpi/src/dpiVar.c +0 -1794
- package/package/MAKEPKG.BAT +0 -156
- package/package/Makefile +0 -85
- package/package/createpackage.js +0 -186
- package/package/extractpackage.js +0 -76
- package/package/getversion.js +0 -37
- package/package/oracledbinstall.js +0 -497
- package/package/package.json +0 -54
- package/package/util.js +0 -286
- package/src/njsCommon.cpp +0 -1055
- package/src/njsCommon.h +0 -484
- package/src/njsConnection.cpp +0 -2926
- package/src/njsConnection.h +0 -227
- package/src/njsIntLob.cpp +0 -618
- package/src/njsIntLob.h +0 -179
- package/src/njsMessages.cpp +0 -122
- package/src/njsMessages.h +0 -118
- package/src/njsOracle.cpp +0 -1274
- package/src/njsOracle.h +0 -237
- package/src/njsPool.cpp +0 -482
- package/src/njsPool.h +0 -132
- package/src/njsResultSet.cpp +0 -478
- package/src/njsResultSet.h +0 -120
- package/src/njsSodaCollection.cpp +0 -507
- package/src/njsSodaCollection.h +0 -128
- package/src/njsSodaDatabase.cpp +0 -335
- package/src/njsSodaDatabase.h +0 -108
- package/src/njsSodaDocCursor.cpp +0 -203
- package/src/njsSodaDocCursor.h +0 -94
- package/src/njsSodaDocument.cpp +0 -412
- package/src/njsSodaDocument.h +0 -105
- package/src/njsSodaOperation.cpp +0 -557
- package/src/njsSodaOperation.h +0 -123
- package/src/njsSubscription.cpp +0 -388
- package/src/njsSubscription.h +0 -111
- package/src/njsUtils.cpp +0 -158
- package/src/njsUtils.h +0 -68
package/src/njsOracle.h
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
/* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. */
|
|
2
|
-
|
|
3
|
-
/******************************************************************************
|
|
4
|
-
*
|
|
5
|
-
* You may not use the identified files except in compliance with the Apache
|
|
6
|
-
* License, Version 2.0 (the "License.")
|
|
7
|
-
*
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
13
|
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
*
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*
|
|
18
|
-
* This file uses NAN:
|
|
19
|
-
*
|
|
20
|
-
* Copyright (c) 2015 NAN contributors
|
|
21
|
-
*
|
|
22
|
-
* NAN contributors listed at https://github.com/rvagg/nan#contributors
|
|
23
|
-
*
|
|
24
|
-
* Permission is hereby granted, free of charge, to any person obtaining
|
|
25
|
-
* a copy of this software and associated documentation files (the
|
|
26
|
-
* "Software"), to deal in the Software without restriction, including
|
|
27
|
-
* without limitation the rights to use, copy, modify, merge, publish,
|
|
28
|
-
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
29
|
-
* permit persons to whom the Software is furnished to do so, subject to
|
|
30
|
-
* the following conditions:
|
|
31
|
-
*
|
|
32
|
-
* The above copyright notice and this permission notice shall be
|
|
33
|
-
* included in all copies or substantial portions of the Software.
|
|
34
|
-
*
|
|
35
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
36
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
37
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
38
|
-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
39
|
-
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
40
|
-
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
41
|
-
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
42
|
-
*
|
|
43
|
-
* NAME
|
|
44
|
-
* njsOracle.h
|
|
45
|
-
*
|
|
46
|
-
* DESCRIPTION
|
|
47
|
-
* Oracledb class
|
|
48
|
-
*
|
|
49
|
-
*****************************************************************************/
|
|
50
|
-
|
|
51
|
-
#ifndef __NJSORACLE_H__
|
|
52
|
-
#define __NJSORACLE_H__
|
|
53
|
-
|
|
54
|
-
#include <v8.h>
|
|
55
|
-
#include <node.h>
|
|
56
|
-
#include "nan.h"
|
|
57
|
-
|
|
58
|
-
#include <string>
|
|
59
|
-
#include <cstring>
|
|
60
|
-
#include <stdlib.h>
|
|
61
|
-
#include <stdio.h>
|
|
62
|
-
|
|
63
|
-
#include "njsCommon.h"
|
|
64
|
-
|
|
65
|
-
using namespace node;
|
|
66
|
-
using namespace v8;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
// Keep the version in sync with package.json.
|
|
70
|
-
// The suffix should be something like "-dev" or "-beta.1".
|
|
71
|
-
// For production, leave NJS_NODE_ORACLEDB_SUFFIX undefined (not "")
|
|
72
|
-
#define NJS_NODE_ORACLEDB_MAJOR 3
|
|
73
|
-
#define NJS_NODE_ORACLEDB_MINOR 0
|
|
74
|
-
#define NJS_NODE_ORACLEDB_PATCH 0
|
|
75
|
-
#define NJS_NODE_ORACLEDB_SUFFIX
|
|
76
|
-
|
|
77
|
-
// define stringified version and driver name
|
|
78
|
-
#define NJS_STR_HELPER(x) #x
|
|
79
|
-
#define NJS_STR(x) NJS_STR_HELPER(x)
|
|
80
|
-
#define NJS_VERSION_STRING \
|
|
81
|
-
NJS_STR(NJS_NODE_ORACLEDB_MAJOR) "." \
|
|
82
|
-
NJS_STR(NJS_NODE_ORACLEDB_MINOR) "." \
|
|
83
|
-
NJS_STR(NJS_NODE_ORACLEDB_PATCH) \
|
|
84
|
-
NJS_NODE_ORACLEDB_SUFFIX
|
|
85
|
-
#define NJS_DRIVER_NAME "node-oracledb : " NJS_VERSION_STRING
|
|
86
|
-
|
|
87
|
-
// Used for Oracledb.version
|
|
88
|
-
#define NJS_NODE_ORACLEDB_VERSION ( (NJS_NODE_ORACLEDB_MAJOR * 10000) + \
|
|
89
|
-
(NJS_NODE_ORACLEDB_MINOR * 100) + \
|
|
90
|
-
(NJS_NODE_ORACLEDB_PATCH) )
|
|
91
|
-
|
|
92
|
-
// default values
|
|
93
|
-
#define NJS_MAX_ROWS 0
|
|
94
|
-
#define NJS_STMT_CACHE_SIZE 30
|
|
95
|
-
#define NJS_POOL_MIN 0
|
|
96
|
-
#define NJS_POOL_MAX 4
|
|
97
|
-
#define NJS_POOL_INCR 1
|
|
98
|
-
#define NJS_POOL_TIMEOUT 60
|
|
99
|
-
#define NJS_LOB_PREFETCH_SIZE 16384
|
|
100
|
-
#define NJS_POOL_DEFAULT_PING_INTERVAL 60
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
//-----------------------------------------------------------------------------
|
|
104
|
-
// njsOracledb
|
|
105
|
-
// Class exposed to JS for the main module.
|
|
106
|
-
//-----------------------------------------------------------------------------
|
|
107
|
-
class njsSubscription;
|
|
108
|
-
class njsOracledb: public njsCommon
|
|
109
|
-
{
|
|
110
|
-
public:
|
|
111
|
-
|
|
112
|
-
static void Init(Local<Object> target);
|
|
113
|
-
|
|
114
|
-
bool getAutoCommit() const { return autoCommit; }
|
|
115
|
-
unsigned int getOutFormat() const { return outFormat; }
|
|
116
|
-
unsigned int getMaxRows() const { return maxRows; }
|
|
117
|
-
unsigned int getStmtCacheSize() const { return stmtCacheSize; }
|
|
118
|
-
unsigned int getPoolMin() const { return poolMin; }
|
|
119
|
-
unsigned int getPoolMax() const { return poolMax; }
|
|
120
|
-
unsigned int getPoolIncrement() const { return poolIncrement; }
|
|
121
|
-
unsigned int getPoolTimeout() const { return poolTimeout; }
|
|
122
|
-
unsigned int getFetchArraySize() const { return fetchArraySize; }
|
|
123
|
-
const std::string& getConnectionClass() const { return connClass; }
|
|
124
|
-
bool getExtendedMetaData() const { return extendedMetaData; }
|
|
125
|
-
bool IsValid() const { return true; }
|
|
126
|
-
njsErrorType GetInvalidErrorType() const { return errSuccess; }
|
|
127
|
-
void SetFetchAsStringTypesOnBaton(njsBaton *baton) const;
|
|
128
|
-
void SetFetchAsBufferTypesOnBaton(njsBaton *baton) const;
|
|
129
|
-
static dpiContext *GetDPIContext() { return globalDPIContext; }
|
|
130
|
-
static void ThrowDPIError(void);
|
|
131
|
-
static njsSubscription *GetSubscription(std::string &name);
|
|
132
|
-
static void SetSubscription(std::string &name, Local<Value> subscription);
|
|
133
|
-
static void ClearSubscription(std::string &name);
|
|
134
|
-
|
|
135
|
-
private:
|
|
136
|
-
|
|
137
|
-
static bool InitCommonCreateParams(njsBaton *baton,
|
|
138
|
-
dpiCommonCreateParams *params);
|
|
139
|
-
|
|
140
|
-
static NAN_METHOD(New);
|
|
141
|
-
|
|
142
|
-
// Get Connection Methods
|
|
143
|
-
static NAN_METHOD(GetConnection);
|
|
144
|
-
static void Async_GetConnection(njsBaton *baton);
|
|
145
|
-
static void Async_AfterGetConnection(njsBaton *baton, Local<Value> argv[]);
|
|
146
|
-
|
|
147
|
-
// Create Pool Methods
|
|
148
|
-
static NAN_METHOD(CreatePool);
|
|
149
|
-
static void Async_CreatePool(njsBaton *baton);
|
|
150
|
-
static void Async_AfterCreatePool(njsBaton *baton, Local<Value> argv[]);
|
|
151
|
-
|
|
152
|
-
// Define Getter Accessors to Properties
|
|
153
|
-
static NAN_GETTER(GetPoolMin);
|
|
154
|
-
static NAN_GETTER(GetPoolMax);
|
|
155
|
-
static NAN_GETTER(GetPoolIncrement);
|
|
156
|
-
static NAN_GETTER(GetPoolTimeout);
|
|
157
|
-
static NAN_GETTER(GetStmtCacheSize);
|
|
158
|
-
static NAN_GETTER(GetAutoCommit);
|
|
159
|
-
static NAN_GETTER(GetExtendedMetaData);
|
|
160
|
-
static NAN_GETTER(GetMaxRows);
|
|
161
|
-
static NAN_GETTER(GetOutFormat);
|
|
162
|
-
static NAN_GETTER(GetVersion);
|
|
163
|
-
static NAN_GETTER(GetVersionString);
|
|
164
|
-
static NAN_GETTER(GetVersionSuffix);
|
|
165
|
-
static NAN_GETTER(GetConnectionClass);
|
|
166
|
-
static NAN_GETTER(GetEdition);
|
|
167
|
-
static NAN_GETTER(GetExternalAuth);
|
|
168
|
-
static NAN_GETTER(GetFetchArraySize);
|
|
169
|
-
static NAN_GETTER(GetFetchAsString);
|
|
170
|
-
static NAN_GETTER(GetFetchAsBuffer);
|
|
171
|
-
static NAN_GETTER(GetLobPrefetchSize);
|
|
172
|
-
static NAN_GETTER(GetOracleClientVersion);
|
|
173
|
-
static NAN_GETTER(GetOracleClientVersionString);
|
|
174
|
-
static NAN_GETTER(GetPoolPingInterval);
|
|
175
|
-
static NAN_GETTER(GetEvents);
|
|
176
|
-
|
|
177
|
-
// Define Setter Accessors to Properties
|
|
178
|
-
static NAN_SETTER(SetPoolMin);
|
|
179
|
-
static NAN_SETTER(SetPoolMax);
|
|
180
|
-
static NAN_SETTER(SetPoolIncrement);
|
|
181
|
-
static NAN_SETTER(SetPoolTimeout);
|
|
182
|
-
static NAN_SETTER(SetStmtCacheSize);
|
|
183
|
-
static NAN_SETTER(SetAutoCommit);
|
|
184
|
-
static NAN_SETTER(SetExtendedMetaData);
|
|
185
|
-
static NAN_SETTER(SetMaxRows);
|
|
186
|
-
static NAN_SETTER(SetOutFormat);
|
|
187
|
-
static NAN_SETTER(SetVersion);
|
|
188
|
-
static NAN_SETTER(SetVersionString);
|
|
189
|
-
static NAN_SETTER(SetVersionSuffix);
|
|
190
|
-
static NAN_SETTER(SetConnectionClass);
|
|
191
|
-
static NAN_SETTER(SetEdition);
|
|
192
|
-
static NAN_SETTER(SetExternalAuth);
|
|
193
|
-
static NAN_SETTER(SetFetchArraySize);
|
|
194
|
-
static NAN_SETTER(SetFetchAsString);
|
|
195
|
-
static NAN_SETTER(SetFetchAsBuffer);
|
|
196
|
-
static NAN_SETTER(SetLobPrefetchSize);
|
|
197
|
-
static NAN_SETTER(SetOracleClientVersion);
|
|
198
|
-
static NAN_SETTER(SetOracleClientVersionString);
|
|
199
|
-
static NAN_SETTER(SetPoolPingInterval);
|
|
200
|
-
static NAN_SETTER(SetEvents);
|
|
201
|
-
|
|
202
|
-
njsOracledb();
|
|
203
|
-
~njsOracledb() {
|
|
204
|
-
jsFetchAsStringTypes.Reset();
|
|
205
|
-
jsFetchAsBufferTypes.Reset();
|
|
206
|
-
}
|
|
207
|
-
uint32_t outFormat;
|
|
208
|
-
bool autoCommit;
|
|
209
|
-
bool extendedMetaData;
|
|
210
|
-
bool events;
|
|
211
|
-
uint32_t maxRows;
|
|
212
|
-
|
|
213
|
-
uint32_t stmtCacheSize;
|
|
214
|
-
uint32_t fetchArraySize;
|
|
215
|
-
|
|
216
|
-
uint32_t poolMin;
|
|
217
|
-
uint32_t poolMax;
|
|
218
|
-
uint32_t poolIncrement;
|
|
219
|
-
uint32_t poolTimeout;
|
|
220
|
-
|
|
221
|
-
std::string connClass;
|
|
222
|
-
std::string edition;
|
|
223
|
-
bool externalAuth;
|
|
224
|
-
Nan::Persistent<Array> jsFetchAsStringTypes;
|
|
225
|
-
Nan::Persistent<Array> jsFetchAsBufferTypes;
|
|
226
|
-
uint32_t lobPrefetchSize;
|
|
227
|
-
unsigned int oraClientVer;
|
|
228
|
-
int32_t poolPingInterval;
|
|
229
|
-
|
|
230
|
-
static Nan::Persistent<FunctionTemplate> oracledbTemplate_s;
|
|
231
|
-
static Nan::Persistent<Object> subscriptions;
|
|
232
|
-
static dpiContext *globalDPIContext;
|
|
233
|
-
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
#endif /* __NJSORACLE_H__ */
|
|
237
|
-
|