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/odpi/src/dpiImpl.h
DELETED
|
@@ -1,1707 +0,0 @@
|
|
|
1
|
-
//-----------------------------------------------------------------------------
|
|
2
|
-
// Copyright (c) 2016, 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
|
-
// dpiImpl.h
|
|
14
|
-
// Master include file for implementation of ODPI-C library. The definitions
|
|
15
|
-
// in this file are subject to change without warning. Only the definitions in
|
|
16
|
-
// the file dpi.h are intended to be used publicly.
|
|
17
|
-
//-----------------------------------------------------------------------------
|
|
18
|
-
|
|
19
|
-
#ifndef DPI_IMPL
|
|
20
|
-
#define DPI_IMPL
|
|
21
|
-
|
|
22
|
-
// Visual Studio 2005 introduced deprecation warnings for "insecure" and POSIX
|
|
23
|
-
// functions; silence these warnings
|
|
24
|
-
#ifndef _CRT_SECURE_NO_WARNINGS
|
|
25
|
-
#define _CRT_SECURE_NO_WARNINGS 1
|
|
26
|
-
#endif
|
|
27
|
-
|
|
28
|
-
#include <stdlib.h>
|
|
29
|
-
#include <string.h>
|
|
30
|
-
#include <stdarg.h>
|
|
31
|
-
#include <stdio.h>
|
|
32
|
-
#include <ctype.h>
|
|
33
|
-
#include <limits.h>
|
|
34
|
-
#include <float.h>
|
|
35
|
-
#include <math.h>
|
|
36
|
-
#include "dpi.h"
|
|
37
|
-
|
|
38
|
-
#ifdef _WIN32
|
|
39
|
-
#include <windows.h>
|
|
40
|
-
#ifndef isnan
|
|
41
|
-
#define isnan _isnan
|
|
42
|
-
#endif
|
|
43
|
-
#else
|
|
44
|
-
#include <pthread.h>
|
|
45
|
-
#include <sys/time.h>
|
|
46
|
-
#include <dlfcn.h>
|
|
47
|
-
#endif
|
|
48
|
-
#ifdef __linux
|
|
49
|
-
#include <unistd.h>
|
|
50
|
-
#include <sys/syscall.h>
|
|
51
|
-
#endif
|
|
52
|
-
|
|
53
|
-
#ifdef _MSC_VER
|
|
54
|
-
#if _MSC_VER < 1900
|
|
55
|
-
#define PRId64 "I64d"
|
|
56
|
-
#define PRIu64 "I64u"
|
|
57
|
-
#define snprintf _snprintf
|
|
58
|
-
#endif
|
|
59
|
-
#endif
|
|
60
|
-
|
|
61
|
-
#ifndef PRIu64
|
|
62
|
-
#include <inttypes.h>
|
|
63
|
-
#endif
|
|
64
|
-
|
|
65
|
-
#ifdef __GNUC__
|
|
66
|
-
#define UNUSED __attribute((unused))
|
|
67
|
-
#else
|
|
68
|
-
#define UNUSED
|
|
69
|
-
#endif
|
|
70
|
-
|
|
71
|
-
// define debugging level (defined in dpiGlobal.c)
|
|
72
|
-
extern unsigned long dpiDebugLevel;
|
|
73
|
-
|
|
74
|
-
// define max error size
|
|
75
|
-
#define DPI_MAX_ERROR_SIZE 3072
|
|
76
|
-
|
|
77
|
-
// define context name for ping interval
|
|
78
|
-
#define DPI_CONTEXT_LAST_TIME_USED "DPI_LAST_TIME_USED"
|
|
79
|
-
|
|
80
|
-
// define size of buffer used for numbers transferred to/from Oracle as text
|
|
81
|
-
#define DPI_NUMBER_AS_TEXT_CHARS 172
|
|
82
|
-
|
|
83
|
-
// define maximum number of digits possible in an Oracle number
|
|
84
|
-
#define DPI_NUMBER_MAX_DIGITS 40
|
|
85
|
-
|
|
86
|
-
// define maximum size in bytes supported by basic string handling
|
|
87
|
-
#define DPI_MAX_BASIC_BUFFER_SIZE 32767
|
|
88
|
-
|
|
89
|
-
// define internal chunk size used for dynamic binding/fetching
|
|
90
|
-
#define DPI_DYNAMIC_BYTES_CHUNK_SIZE 65536
|
|
91
|
-
|
|
92
|
-
// define maximum buffer size permitted in variables
|
|
93
|
-
#define DPI_MAX_VAR_BUFFER_SIZE (1024 * 1024 * 1024 - 2)
|
|
94
|
-
|
|
95
|
-
// define subscription grouping repeat count
|
|
96
|
-
#define DPI_SUBSCR_GROUPING_FOREVER -1
|
|
97
|
-
|
|
98
|
-
// define number of rows to prefetch
|
|
99
|
-
#define DPI_PREFETCH_ROWS_DEFAULT 2
|
|
100
|
-
|
|
101
|
-
// define well-known character sets
|
|
102
|
-
#define DPI_CHARSET_ID_ASCII 1
|
|
103
|
-
#define DPI_CHARSET_ID_UTF8 873
|
|
104
|
-
#define DPI_CHARSET_ID_UTF16 1000
|
|
105
|
-
#define DPI_CHARSET_ID_UTF16BE 2000
|
|
106
|
-
#define DPI_CHARSET_ID_UTF16LE 2002
|
|
107
|
-
#define DPI_CHARSET_NAME_ASCII "ASCII"
|
|
108
|
-
#define DPI_CHARSET_NAME_UTF8 "UTF-8"
|
|
109
|
-
#define DPI_CHARSET_NAME_UTF16 "UTF-16"
|
|
110
|
-
#define DPI_CHARSET_NAME_UTF16BE "UTF-16BE"
|
|
111
|
-
#define DPI_CHARSET_NAME_UTF16LE "UTF-16LE"
|
|
112
|
-
|
|
113
|
-
// define handle types used for allocating OCI handles
|
|
114
|
-
#define DPI_OCI_HTYPE_ENV 1
|
|
115
|
-
#define DPI_OCI_HTYPE_ERROR 2
|
|
116
|
-
#define DPI_OCI_HTYPE_SVCCTX 3
|
|
117
|
-
#define DPI_OCI_HTYPE_STMT 4
|
|
118
|
-
#define DPI_OCI_HTYPE_BIND 5
|
|
119
|
-
#define DPI_OCI_HTYPE_DEFINE 6
|
|
120
|
-
#define DPI_OCI_HTYPE_DESCRIBE 7
|
|
121
|
-
#define DPI_OCI_HTYPE_SERVER 8
|
|
122
|
-
#define DPI_OCI_HTYPE_SESSION 9
|
|
123
|
-
#define DPI_OCI_HTYPE_AUTHINFO 9
|
|
124
|
-
#define DPI_OCI_HTYPE_TRANS 10
|
|
125
|
-
#define DPI_OCI_HTYPE_SUBSCRIPTION 13
|
|
126
|
-
#define DPI_OCI_HTYPE_SPOOL 27
|
|
127
|
-
#define DPI_OCI_HTYPE_SODA_COLLECTION 30
|
|
128
|
-
#define DPI_OCI_HTYPE_SODA_DOCUMENT 31
|
|
129
|
-
#define DPI_OCI_HTYPE_SODA_COLL_CURSOR 32
|
|
130
|
-
#define DPI_OCI_HTYPE_SODA_OPER_OPTIONS 33
|
|
131
|
-
#define DPI_OCI_HTYPE_SODA_OUTPUT_OPTIONS 34
|
|
132
|
-
#define DPI_OCI_HTYPE_SODA_DOC_CURSOR 36
|
|
133
|
-
|
|
134
|
-
// define OCI descriptor types
|
|
135
|
-
#define DPI_OCI_DTYPE_LOB 50
|
|
136
|
-
#define DPI_OCI_DTYPE_PARAM 53
|
|
137
|
-
#define DPI_OCI_DTYPE_ROWID 54
|
|
138
|
-
#define DPI_OCI_DTYPE_AQENQ_OPTIONS 57
|
|
139
|
-
#define DPI_OCI_DTYPE_AQDEQ_OPTIONS 58
|
|
140
|
-
#define DPI_OCI_DTYPE_AQMSG_PROPERTIES 59
|
|
141
|
-
#define DPI_OCI_DTYPE_INTERVAL_YM 62
|
|
142
|
-
#define DPI_OCI_DTYPE_INTERVAL_DS 63
|
|
143
|
-
#define DPI_OCI_DTYPE_AQNFY_DESCRIPTOR 64
|
|
144
|
-
#define DPI_OCI_DTYPE_TIMESTAMP 68
|
|
145
|
-
#define DPI_OCI_DTYPE_TIMESTAMP_TZ 69
|
|
146
|
-
#define DPI_OCI_DTYPE_TIMESTAMP_LTZ 70
|
|
147
|
-
#define DPI_OCI_DTYPE_CHDES 77
|
|
148
|
-
#define DPI_OCI_DTYPE_TABLE_CHDES 78
|
|
149
|
-
#define DPI_OCI_DTYPE_ROW_CHDES 79
|
|
150
|
-
#define DPI_OCI_DTYPE_CQDES 80
|
|
151
|
-
#define DPI_OCI_DTYPE_SHARDING_KEY 83
|
|
152
|
-
|
|
153
|
-
// define values used for getting/setting OCI attributes
|
|
154
|
-
#define DPI_OCI_ATTR_DATA_SIZE 1
|
|
155
|
-
#define DPI_OCI_ATTR_DATA_TYPE 2
|
|
156
|
-
#define DPI_OCI_ATTR_PRECISION 5
|
|
157
|
-
#define DPI_OCI_ATTR_SCALE 6
|
|
158
|
-
#define DPI_OCI_ATTR_NAME 4
|
|
159
|
-
#define DPI_OCI_ATTR_SERVER 6
|
|
160
|
-
#define DPI_OCI_ATTR_SESSION 7
|
|
161
|
-
#define DPI_OCI_ATTR_IS_NULL 7
|
|
162
|
-
#define DPI_OCI_ATTR_TRANS 8
|
|
163
|
-
#define DPI_OCI_ATTR_TYPE_NAME 8
|
|
164
|
-
#define DPI_OCI_ATTR_SCHEMA_NAME 9
|
|
165
|
-
#define DPI_OCI_ATTR_ROW_COUNT 9
|
|
166
|
-
#define DPI_OCI_ATTR_PREFETCH_ROWS 11
|
|
167
|
-
#define DPI_OCI_ATTR_PARAM_COUNT 18
|
|
168
|
-
#define DPI_OCI_ATTR_USERNAME 22
|
|
169
|
-
#define DPI_OCI_ATTR_PASSWORD 23
|
|
170
|
-
#define DPI_OCI_ATTR_STMT_TYPE 24
|
|
171
|
-
#define DPI_OCI_ATTR_INTERNAL_NAME 25
|
|
172
|
-
#define DPI_OCI_ATTR_EXTERNAL_NAME 26
|
|
173
|
-
#define DPI_OCI_ATTR_XID 27
|
|
174
|
-
#define DPI_OCI_ATTR_CHARSET_ID 31
|
|
175
|
-
#define DPI_OCI_ATTR_CHARSET_FORM 32
|
|
176
|
-
#define DPI_OCI_ATTR_MAXDATA_SIZE 33
|
|
177
|
-
#define DPI_OCI_ATTR_ROWS_RETURNED 42
|
|
178
|
-
#define DPI_OCI_ATTR_VISIBILITY 47
|
|
179
|
-
#define DPI_OCI_ATTR_CONSUMER_NAME 50
|
|
180
|
-
#define DPI_OCI_ATTR_DEQ_MODE 51
|
|
181
|
-
#define DPI_OCI_ATTR_NAVIGATION 52
|
|
182
|
-
#define DPI_OCI_ATTR_WAIT 53
|
|
183
|
-
#define DPI_OCI_ATTR_DEQ_MSGID 54
|
|
184
|
-
#define DPI_OCI_ATTR_PRIORITY 55
|
|
185
|
-
#define DPI_OCI_ATTR_DELAY 56
|
|
186
|
-
#define DPI_OCI_ATTR_EXPIRATION 57
|
|
187
|
-
#define DPI_OCI_ATTR_CORRELATION 58
|
|
188
|
-
#define DPI_OCI_ATTR_ATTEMPTS 59
|
|
189
|
-
#define DPI_OCI_ATTR_EXCEPTION_QUEUE 61
|
|
190
|
-
#define DPI_OCI_ATTR_ENQ_TIME 62
|
|
191
|
-
#define DPI_OCI_ATTR_MSG_STATE 63
|
|
192
|
-
#define DPI_OCI_ATTR_ORIGINAL_MSGID 69
|
|
193
|
-
#define DPI_OCI_ATTR_QUEUE_NAME 70
|
|
194
|
-
#define DPI_OCI_ATTR_NUM_DML_ERRORS 73
|
|
195
|
-
#define DPI_OCI_ATTR_DML_ROW_OFFSET 74
|
|
196
|
-
#define DPI_OCI_ATTR_SUBSCR_NAME 94
|
|
197
|
-
#define DPI_OCI_ATTR_SUBSCR_CALLBACK 95
|
|
198
|
-
#define DPI_OCI_ATTR_SUBSCR_CTX 96
|
|
199
|
-
#define DPI_OCI_ATTR_SUBSCR_NAMESPACE 98
|
|
200
|
-
#define DPI_OCI_ATTR_REF_TDO 110
|
|
201
|
-
#define DPI_OCI_ATTR_PARAM 124
|
|
202
|
-
#define DPI_OCI_ATTR_PARSE_ERROR_OFFSET 129
|
|
203
|
-
#define DPI_OCI_ATTR_SERVER_STATUS 143
|
|
204
|
-
#define DPI_OCI_ATTR_STATEMENT 144
|
|
205
|
-
#define DPI_OCI_ATTR_DEQCOND 146
|
|
206
|
-
#define DPI_OCI_ATTR_SUBSCR_RECPTPROTO 149
|
|
207
|
-
#define DPI_OCI_ATTR_CURRENT_POSITION 164
|
|
208
|
-
#define DPI_OCI_ATTR_STMTCACHESIZE 176
|
|
209
|
-
#define DPI_OCI_ATTR_BIND_COUNT 190
|
|
210
|
-
#define DPI_OCI_ATTR_TRANSFORMATION 196
|
|
211
|
-
#define DPI_OCI_ATTR_ROWS_FETCHED 197
|
|
212
|
-
#define DPI_OCI_ATTR_SPOOL_STMTCACHESIZE 208
|
|
213
|
-
#define DPI_OCI_ATTR_TYPECODE 216
|
|
214
|
-
#define DPI_OCI_ATTR_STMT_IS_RETURNING 218
|
|
215
|
-
#define DPI_OCI_ATTR_CURRENT_SCHEMA 224
|
|
216
|
-
#define DPI_OCI_ATTR_SUBSCR_QOSFLAGS 225
|
|
217
|
-
#define DPI_OCI_ATTR_COLLECTION_ELEMENT 227
|
|
218
|
-
#define DPI_OCI_ATTR_SUBSCR_TIMEOUT 227
|
|
219
|
-
#define DPI_OCI_ATTR_NUM_TYPE_ATTRS 228
|
|
220
|
-
#define DPI_OCI_ATTR_SUBSCR_CQ_QOSFLAGS 229
|
|
221
|
-
#define DPI_OCI_ATTR_LIST_TYPE_ATTRS 229
|
|
222
|
-
#define DPI_OCI_ATTR_SUBSCR_NTFN_GROUPING_CLASS 231
|
|
223
|
-
#define DPI_OCI_ATTR_SUBSCR_NTFN_GROUPING_VALUE 232
|
|
224
|
-
#define DPI_OCI_ATTR_SUBSCR_NTFN_GROUPING_TYPE 233
|
|
225
|
-
#define DPI_OCI_ATTR_SUBSCR_NTFN_GROUPING_REPEAT_COUNT 235
|
|
226
|
-
#define DPI_OCI_ATTR_NCHARSET_ID 262
|
|
227
|
-
#define DPI_OCI_ATTR_APPCTX_SIZE 273
|
|
228
|
-
#define DPI_OCI_ATTR_APPCTX_LIST 274
|
|
229
|
-
#define DPI_OCI_ATTR_APPCTX_NAME 275
|
|
230
|
-
#define DPI_OCI_ATTR_APPCTX_ATTR 276
|
|
231
|
-
#define DPI_OCI_ATTR_APPCTX_VALUE 277
|
|
232
|
-
#define DPI_OCI_ATTR_CLIENT_IDENTIFIER 278
|
|
233
|
-
#define DPI_OCI_ATTR_CHAR_SIZE 286
|
|
234
|
-
#define DPI_OCI_ATTR_EDITION 288
|
|
235
|
-
#define DPI_OCI_ATTR_CQ_QUERYID 304
|
|
236
|
-
#define DPI_OCI_ATTR_SPOOL_TIMEOUT 308
|
|
237
|
-
#define DPI_OCI_ATTR_SPOOL_GETMODE 309
|
|
238
|
-
#define DPI_OCI_ATTR_SPOOL_BUSY_COUNT 310
|
|
239
|
-
#define DPI_OCI_ATTR_SPOOL_OPEN_COUNT 311
|
|
240
|
-
#define DPI_OCI_ATTR_MODULE 366
|
|
241
|
-
#define DPI_OCI_ATTR_ACTION 367
|
|
242
|
-
#define DPI_OCI_ATTR_CLIENT_INFO 368
|
|
243
|
-
#define DPI_OCI_ATTR_SUBSCR_PORTNO 390
|
|
244
|
-
#define DPI_OCI_ATTR_CHNF_ROWIDS 402
|
|
245
|
-
#define DPI_OCI_ATTR_CHNF_OPERATIONS 403
|
|
246
|
-
#define DPI_OCI_ATTR_CHDES_DBNAME 405
|
|
247
|
-
#define DPI_OCI_ATTR_CHDES_NFYTYPE 406
|
|
248
|
-
#define DPI_OCI_ATTR_NFY_FLAGS 406
|
|
249
|
-
#define DPI_OCI_ATTR_CHDES_XID 407
|
|
250
|
-
#define DPI_OCI_ATTR_MSG_DELIVERY_MODE 407
|
|
251
|
-
#define DPI_OCI_ATTR_CHDES_TABLE_CHANGES 408
|
|
252
|
-
#define DPI_OCI_ATTR_CHDES_TABLE_NAME 409
|
|
253
|
-
#define DPI_OCI_ATTR_CHDES_TABLE_OPFLAGS 410
|
|
254
|
-
#define DPI_OCI_ATTR_CHDES_TABLE_ROW_CHANGES 411
|
|
255
|
-
#define DPI_OCI_ATTR_CHDES_ROW_ROWID 412
|
|
256
|
-
#define DPI_OCI_ATTR_CHDES_ROW_OPFLAGS 413
|
|
257
|
-
#define DPI_OCI_ATTR_CHNF_REGHANDLE 414
|
|
258
|
-
#define DPI_OCI_ATTR_CQDES_OPERATION 422
|
|
259
|
-
#define DPI_OCI_ATTR_CQDES_TABLE_CHANGES 423
|
|
260
|
-
#define DPI_OCI_ATTR_CQDES_QUERYID 424
|
|
261
|
-
#define DPI_OCI_ATTR_DRIVER_NAME 424
|
|
262
|
-
#define DPI_OCI_ATTR_CHDES_QUERIES 425
|
|
263
|
-
#define DPI_OCI_ATTR_CONNECTION_CLASS 425
|
|
264
|
-
#define DPI_OCI_ATTR_PURITY 426
|
|
265
|
-
#define DPI_OCI_ATTR_RECEIVE_TIMEOUT 436
|
|
266
|
-
#define DPI_OCI_ATTR_SUBSCR_IPADDR 452
|
|
267
|
-
#define DPI_OCI_ATTR_UB8_ROW_COUNT 457
|
|
268
|
-
#define DPI_OCI_ATTR_SPOOL_AUTH 460
|
|
269
|
-
#define DPI_OCI_ATTR_LTXID 462
|
|
270
|
-
#define DPI_OCI_ATTR_DML_ROW_COUNT_ARRAY 469
|
|
271
|
-
#define DPI_OCI_ATTR_ERROR_IS_RECOVERABLE 472
|
|
272
|
-
#define DPI_OCI_ATTR_TRANSACTION_IN_PROGRESS 484
|
|
273
|
-
#define DPI_OCI_ATTR_DBOP 485
|
|
274
|
-
#define DPI_OCI_ATTR_SPOOL_MAX_LIFETIME_SESSION 490
|
|
275
|
-
#define DPI_OCI_ATTR_BREAK_ON_NET_TIMEOUT 495
|
|
276
|
-
#define DPI_OCI_ATTR_SHARDING_KEY 496
|
|
277
|
-
#define DPI_OCI_ATTR_SUPER_SHARDING_KEY 497
|
|
278
|
-
#define DPI_OCI_ATTR_SPOOL_WAIT_TIMEOUT 506
|
|
279
|
-
#define DPI_OCI_ATTR_CALL_TIMEOUT 531
|
|
280
|
-
#define DPI_OCI_ATTR_SODA_COLL_NAME 535
|
|
281
|
-
#define DPI_OCI_ATTR_SODA_COLL_DESCRIPTOR 536
|
|
282
|
-
#define DPI_OCI_ATTR_SODA_CTNT_SQL_TYPE 549
|
|
283
|
-
#define DPI_OCI_ATTR_SODA_KEY 563
|
|
284
|
-
#define DPI_OCI_ATTR_SODA_LASTMOD_TIMESTAMP 564
|
|
285
|
-
#define DPI_OCI_ATTR_SODA_CREATE_TIMESTAMP 565
|
|
286
|
-
#define DPI_OCI_ATTR_SODA_VERSION 566
|
|
287
|
-
#define DPI_OCI_ATTR_SODA_CONTENT 567
|
|
288
|
-
#define DPI_OCI_ATTR_SODA_JSON_CHARSET_ID 568
|
|
289
|
-
#define DPI_OCI_ATTR_SODA_DETECT_JSON_ENC 569
|
|
290
|
-
#define DPI_OCI_ATTR_SODA_MEDIA_TYPE 571
|
|
291
|
-
#define DPI_OCI_ATTR_SODA_CTNT_FORMAT 572
|
|
292
|
-
#define DPI_OCI_ATTR_SODA_FILTER 576
|
|
293
|
-
#define DPI_OCI_ATTR_SODA_SKIP 577
|
|
294
|
-
#define DPI_OCI_ATTR_SODA_LIMIT 578
|
|
295
|
-
#define DPI_OCI_ATTR_SODA_DOC_COUNT 593
|
|
296
|
-
|
|
297
|
-
// define OCI object type constants
|
|
298
|
-
#define DPI_OCI_OTYPE_NAME 1
|
|
299
|
-
#define DPI_OCI_OTYPE_PTR 3
|
|
300
|
-
|
|
301
|
-
// define OCI data type constants
|
|
302
|
-
#define DPI_SQLT_CHR 1
|
|
303
|
-
#define DPI_SQLT_NUM 2
|
|
304
|
-
#define DPI_SQLT_INT 3
|
|
305
|
-
#define DPI_SQLT_FLT 4
|
|
306
|
-
#define DPI_SQLT_VNU 6
|
|
307
|
-
#define DPI_SQLT_PDN 7
|
|
308
|
-
#define DPI_SQLT_LNG 8
|
|
309
|
-
#define DPI_SQLT_VCS 9
|
|
310
|
-
#define DPI_SQLT_DAT 12
|
|
311
|
-
#define DPI_SQLT_BFLOAT 21
|
|
312
|
-
#define DPI_SQLT_BDOUBLE 22
|
|
313
|
-
#define DPI_SQLT_BIN 23
|
|
314
|
-
#define DPI_SQLT_LBI 24
|
|
315
|
-
#define DPI_SQLT_UIN 68
|
|
316
|
-
#define DPI_SQLT_AFC 96
|
|
317
|
-
#define DPI_SQLT_IBFLOAT 100
|
|
318
|
-
#define DPI_SQLT_IBDOUBLE 101
|
|
319
|
-
#define DPI_SQLT_RDD 104
|
|
320
|
-
#define DPI_SQLT_NTY 108
|
|
321
|
-
#define DPI_SQLT_CLOB 112
|
|
322
|
-
#define DPI_SQLT_BLOB 113
|
|
323
|
-
#define DPI_SQLT_BFILE 114
|
|
324
|
-
#define DPI_SQLT_RSET 116
|
|
325
|
-
#define DPI_SQLT_NCO 122
|
|
326
|
-
#define DPI_SQLT_ODT 156
|
|
327
|
-
#define DPI_SQLT_DATE 184
|
|
328
|
-
#define DPI_SQLT_TIMESTAMP 187
|
|
329
|
-
#define DPI_SQLT_TIMESTAMP_TZ 188
|
|
330
|
-
#define DPI_SQLT_INTERVAL_YM 189
|
|
331
|
-
#define DPI_SQLT_INTERVAL_DS 190
|
|
332
|
-
#define DPI_SQLT_TIMESTAMP_LTZ 232
|
|
333
|
-
#define DPI_OCI_TYPECODE_SMALLINT 246
|
|
334
|
-
#define DPI_SQLT_REC 250
|
|
335
|
-
#define DPI_SQLT_BOL 252
|
|
336
|
-
|
|
337
|
-
// define session pool constants
|
|
338
|
-
#define DPI_OCI_SPD_FORCE 0x0001
|
|
339
|
-
#define DPI_OCI_SPC_HOMOGENEOUS 0x0002
|
|
340
|
-
#define DPI_OCI_SPC_STMTCACHE 0x0004
|
|
341
|
-
|
|
342
|
-
// define OCI session pool get constants
|
|
343
|
-
#define DPI_OCI_SESSGET_SPOOL 0x0001
|
|
344
|
-
#define DPI_OCI_SESSGET_STMTCACHE 0x0004
|
|
345
|
-
#define DPI_OCI_SESSGET_CREDPROXY 0x0008
|
|
346
|
-
#define DPI_OCI_SESSGET_CREDEXT 0x0010
|
|
347
|
-
#define DPI_OCI_SESSGET_SPOOL_MATCHANY 0x0020
|
|
348
|
-
#define DPI_OCI_SESSGET_SYSDBA 0x0100
|
|
349
|
-
|
|
350
|
-
// define OCI authentication constants
|
|
351
|
-
#define DPI_OCI_CPW_SYSDBA 0x00000010
|
|
352
|
-
#define DPI_OCI_CPW_SYSOPER 0x00000020
|
|
353
|
-
#define DPI_OCI_CPW_SYSASM 0x00800040
|
|
354
|
-
#define DPI_OCI_CPW_SYSBKP 0x00000080
|
|
355
|
-
#define DPI_OCI_CPW_SYSDGD 0x00000100
|
|
356
|
-
#define DPI_OCI_CPW_SYSKMT 0x00000200
|
|
357
|
-
|
|
358
|
-
// define NLS constants
|
|
359
|
-
#define DPI_OCI_NLS_CS_IANA_TO_ORA 0
|
|
360
|
-
#define DPI_OCI_NLS_CS_ORA_TO_IANA 1
|
|
361
|
-
#define DPI_OCI_NLS_CHARSET_MAXBYTESZ 91
|
|
362
|
-
#define DPI_OCI_NLS_CHARSET_ID 93
|
|
363
|
-
#define DPI_OCI_NLS_NCHARSET_ID 94
|
|
364
|
-
#define DPI_OCI_NLS_MAXBUFSZ 100
|
|
365
|
-
#define DPI_SQLCS_IMPLICIT 1
|
|
366
|
-
#define DPI_SQLCS_NCHAR 2
|
|
367
|
-
|
|
368
|
-
// define XA constants
|
|
369
|
-
#define DPI_XA_MAXGTRIDSIZE 64
|
|
370
|
-
#define DPI_XA_MAXBQUALSIZE 64
|
|
371
|
-
#define DPI_XA_XIDDATASIZE 128
|
|
372
|
-
|
|
373
|
-
// define null indicator values
|
|
374
|
-
#define DPI_OCI_IND_NULL -1
|
|
375
|
-
#define DPI_OCI_IND_NOTNULL 0
|
|
376
|
-
|
|
377
|
-
// define subscription QOS values
|
|
378
|
-
#define DPI_OCI_SUBSCR_QOS_RELIABLE 0x01
|
|
379
|
-
#define DPI_OCI_SUBSCR_QOS_PURGE_ON_NTFN 0x10
|
|
380
|
-
#define DPI_OCI_SUBSCR_CQ_QOS_QUERY 0x01
|
|
381
|
-
#define DPI_OCI_SUBSCR_CQ_QOS_BEST_EFFORT 0x02
|
|
382
|
-
|
|
383
|
-
// define miscellaneous OCI constants
|
|
384
|
-
#define DPI_OCI_CONTINUE -24200
|
|
385
|
-
#define DPI_OCI_INVALID_HANDLE -2
|
|
386
|
-
#define DPI_OCI_ERROR -1
|
|
387
|
-
#define DPI_OCI_DEFAULT 0
|
|
388
|
-
#define DPI_OCI_SUCCESS 0
|
|
389
|
-
#define DPI_OCI_ONE_PIECE 0
|
|
390
|
-
#define DPI_OCI_ATTR_PURITY_DEFAULT 0
|
|
391
|
-
#define DPI_OCI_NUMBER_UNSIGNED 0
|
|
392
|
-
#define DPI_OCI_SUCCESS_WITH_INFO 1
|
|
393
|
-
#define DPI_OCI_NTV_SYNTAX 1
|
|
394
|
-
#define DPI_OCI_MEMORY_CLEARED 1
|
|
395
|
-
#define DPI_OCI_SESSRLS_DROPSESS 1
|
|
396
|
-
#define DPI_OCI_SERVER_NORMAL 1
|
|
397
|
-
#define DPI_OCI_TYPEGET_ALL 1
|
|
398
|
-
#define DPI_OCI_TRANS_NEW 1
|
|
399
|
-
#define DPI_OCI_LOCK_NONE 1
|
|
400
|
-
#define DPI_OCI_TEMP_BLOB 1
|
|
401
|
-
#define DPI_OCI_CRED_RDBMS 1
|
|
402
|
-
#define DPI_OCI_LOB_READONLY 1
|
|
403
|
-
#define DPI_OCI_JSON_FORMAT_OSON 1
|
|
404
|
-
#define DPI_OCI_TEMP_CLOB 2
|
|
405
|
-
#define DPI_OCI_CRED_EXT 2
|
|
406
|
-
#define DPI_OCI_LOB_READWRITE 2
|
|
407
|
-
#define DPI_OCI_DATA_AT_EXEC 2
|
|
408
|
-
#define DPI_OCI_DYNAMIC_FETCH 2
|
|
409
|
-
#define DPI_OCI_NUMBER_SIGNED 2
|
|
410
|
-
#define DPI_OCI_PIN_ANY 3
|
|
411
|
-
#define DPI_OCI_PTYPE_TYPE 6
|
|
412
|
-
#define DPI_OCI_AUTH 8
|
|
413
|
-
#define DPI_OCI_DURATION_SESSION 10
|
|
414
|
-
#define DPI_OCI_NUMBER_SIZE 22
|
|
415
|
-
#define DPI_OCI_NO_DATA 100
|
|
416
|
-
#define DPI_OCI_STRLS_CACHE_DELETE 0x0010
|
|
417
|
-
#define DPI_OCI_THREADED 0x00000001
|
|
418
|
-
#define DPI_OCI_OBJECT 0x00000002
|
|
419
|
-
#define DPI_OCI_SODA_ATOMIC_COMMIT 0x00000001
|
|
420
|
-
#define DPI_OCI_SODA_AS_STORED 0x00000002
|
|
421
|
-
#define DPI_OCI_SODA_AS_AL32UTF8 0x00000004
|
|
422
|
-
#define DPI_OCI_STMT_SCROLLABLE_READONLY 0x00000008
|
|
423
|
-
#define DPI_OCI_STMT_CACHE 0x00000040
|
|
424
|
-
#define DPI_OCI_SODA_COLL_CREATE_MAP 0x00010000
|
|
425
|
-
#define DPI_OCI_SODA_INDEX_DROP_FORCE 0x00010000
|
|
426
|
-
#define DPI_OCI_TRANS_TWOPHASE 0x01000000
|
|
427
|
-
|
|
428
|
-
//-----------------------------------------------------------------------------
|
|
429
|
-
// Macros
|
|
430
|
-
//-----------------------------------------------------------------------------
|
|
431
|
-
#define DPI_CHECK_PTR_NOT_NULL(handle, parameter) \
|
|
432
|
-
if (!parameter) { \
|
|
433
|
-
dpiError__set(&error, "check parameter " #parameter, \
|
|
434
|
-
DPI_ERR_NULL_POINTER_PARAMETER, #parameter); \
|
|
435
|
-
return dpiGen__endPublicFn(handle, DPI_FAILURE, &error); \
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
#define DPI_CHECK_PTR_AND_LENGTH(handle, parameter) \
|
|
439
|
-
if (!parameter && parameter ## Length > 0) { \
|
|
440
|
-
dpiError__set(&error, "check parameter " #parameter, \
|
|
441
|
-
DPI_ERR_PTR_LENGTH_MISMATCH, #parameter); \
|
|
442
|
-
return dpiGen__endPublicFn(handle, DPI_FAILURE, &error); \
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
//-----------------------------------------------------------------------------
|
|
447
|
-
// Enumerations
|
|
448
|
-
//-----------------------------------------------------------------------------
|
|
449
|
-
|
|
450
|
-
// error numbers
|
|
451
|
-
typedef enum {
|
|
452
|
-
DPI_ERR_NO_ERR = 1000,
|
|
453
|
-
DPI_ERR_NO_MEMORY,
|
|
454
|
-
DPI_ERR_INVALID_HANDLE,
|
|
455
|
-
DPI_ERR_ERR_NOT_INITIALIZED,
|
|
456
|
-
DPI_ERR_GET_FAILED,
|
|
457
|
-
DPI_ERR_CREATE_ENV,
|
|
458
|
-
DPI_ERR_CONVERT_TEXT,
|
|
459
|
-
DPI_ERR_QUERY_NOT_EXECUTED,
|
|
460
|
-
DPI_ERR_UNHANDLED_DATA_TYPE,
|
|
461
|
-
DPI_ERR_INVALID_ARRAY_POSITION,
|
|
462
|
-
DPI_ERR_NOT_CONNECTED,
|
|
463
|
-
DPI_ERR_CONN_NOT_IN_POOL,
|
|
464
|
-
DPI_ERR_INVALID_PROXY,
|
|
465
|
-
DPI_ERR_NOT_SUPPORTED,
|
|
466
|
-
DPI_ERR_UNHANDLED_CONVERSION,
|
|
467
|
-
DPI_ERR_ARRAY_SIZE_TOO_BIG,
|
|
468
|
-
DPI_ERR_INVALID_DATE,
|
|
469
|
-
DPI_ERR_VALUE_IS_NULL,
|
|
470
|
-
DPI_ERR_ARRAY_SIZE_TOO_SMALL,
|
|
471
|
-
DPI_ERR_BUFFER_SIZE_TOO_SMALL,
|
|
472
|
-
DPI_ERR_VERSION_NOT_SUPPORTED,
|
|
473
|
-
DPI_ERR_INVALID_ORACLE_TYPE,
|
|
474
|
-
DPI_ERR_WRONG_ATTR,
|
|
475
|
-
DPI_ERR_NOT_COLLECTION,
|
|
476
|
-
DPI_ERR_INVALID_INDEX,
|
|
477
|
-
DPI_ERR_NO_OBJECT_TYPE,
|
|
478
|
-
DPI_ERR_INVALID_CHARSET,
|
|
479
|
-
DPI_ERR_SCROLL_OUT_OF_RS,
|
|
480
|
-
DPI_ERR_QUERY_POSITION_INVALID,
|
|
481
|
-
DPI_ERR_NO_ROW_FETCHED,
|
|
482
|
-
DPI_ERR_TLS_ERROR,
|
|
483
|
-
DPI_ERR_ARRAY_SIZE_ZERO,
|
|
484
|
-
DPI_ERR_EXT_AUTH_WITH_CREDENTIALS,
|
|
485
|
-
DPI_ERR_CANNOT_GET_ROW_OFFSET,
|
|
486
|
-
DPI_ERR_CONN_IS_EXTERNAL,
|
|
487
|
-
DPI_ERR_TRANS_ID_TOO_LARGE,
|
|
488
|
-
DPI_ERR_BRANCH_ID_TOO_LARGE,
|
|
489
|
-
DPI_ERR_COLUMN_FETCH,
|
|
490
|
-
DPI_ERR_STMT_CLOSED,
|
|
491
|
-
DPI_ERR_LOB_CLOSED,
|
|
492
|
-
DPI_ERR_INVALID_CHARSET_ID,
|
|
493
|
-
DPI_ERR_INVALID_OCI_NUMBER,
|
|
494
|
-
DPI_ERR_INVALID_NUMBER,
|
|
495
|
-
DPI_ERR_NUMBER_TOO_LARGE,
|
|
496
|
-
DPI_ERR_NUMBER_STRING_TOO_LONG,
|
|
497
|
-
DPI_ERR_NULL_POINTER_PARAMETER,
|
|
498
|
-
DPI_ERR_LOAD_LIBRARY,
|
|
499
|
-
DPI_ERR_LOAD_SYMBOL,
|
|
500
|
-
DPI_ERR_ORACLE_CLIENT_TOO_OLD,
|
|
501
|
-
DPI_ERR_NLS_ENV_VAR_GET,
|
|
502
|
-
DPI_ERR_PTR_LENGTH_MISMATCH,
|
|
503
|
-
DPI_ERR_NAN,
|
|
504
|
-
DPI_ERR_WRONG_TYPE,
|
|
505
|
-
DPI_ERR_BUFFER_SIZE_TOO_LARGE,
|
|
506
|
-
DPI_ERR_NO_EDITION_WITH_CONN_CLASS,
|
|
507
|
-
DPI_ERR_NO_BIND_VARS_IN_DDL,
|
|
508
|
-
DPI_ERR_SUBSCR_CLOSED,
|
|
509
|
-
DPI_ERR_NO_EDITION_WITH_NEW_PASSWORD,
|
|
510
|
-
DPI_ERR_UNEXPECTED_OCI_RETURN_VALUE,
|
|
511
|
-
DPI_ERR_EXEC_MODE_ONLY_FOR_DML,
|
|
512
|
-
DPI_ERR_ARRAY_VAR_NOT_SUPPORTED,
|
|
513
|
-
DPI_ERR_EVENTS_MODE_REQUIRED,
|
|
514
|
-
DPI_ERR_ORACLE_DB_TOO_OLD,
|
|
515
|
-
DPI_ERR_CALL_TIMEOUT,
|
|
516
|
-
DPI_ERR_SODA_CURSOR_CLOSED,
|
|
517
|
-
DPI_ERR_MAX
|
|
518
|
-
} dpiErrorNum;
|
|
519
|
-
|
|
520
|
-
// handle types
|
|
521
|
-
typedef enum {
|
|
522
|
-
DPI_HTYPE_NONE = 4000,
|
|
523
|
-
DPI_HTYPE_CONN,
|
|
524
|
-
DPI_HTYPE_POOL,
|
|
525
|
-
DPI_HTYPE_STMT,
|
|
526
|
-
DPI_HTYPE_VAR,
|
|
527
|
-
DPI_HTYPE_LOB,
|
|
528
|
-
DPI_HTYPE_OBJECT,
|
|
529
|
-
DPI_HTYPE_OBJECT_TYPE,
|
|
530
|
-
DPI_HTYPE_OBJECT_ATTR,
|
|
531
|
-
DPI_HTYPE_SUBSCR,
|
|
532
|
-
DPI_HTYPE_DEQ_OPTIONS,
|
|
533
|
-
DPI_HTYPE_ENQ_OPTIONS,
|
|
534
|
-
DPI_HTYPE_MSG_PROPS,
|
|
535
|
-
DPI_HTYPE_ROWID,
|
|
536
|
-
DPI_HTYPE_CONTEXT,
|
|
537
|
-
DPI_HTYPE_SODA_COLL,
|
|
538
|
-
DPI_HTYPE_SODA_COLL_CURSOR,
|
|
539
|
-
DPI_HTYPE_SODA_DB,
|
|
540
|
-
DPI_HTYPE_SODA_DOC,
|
|
541
|
-
DPI_HTYPE_SODA_DOC_CURSOR,
|
|
542
|
-
DPI_HTYPE_MAX
|
|
543
|
-
} dpiHandleTypeNum;
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
//-----------------------------------------------------------------------------
|
|
547
|
-
// Mutex definitions
|
|
548
|
-
//-----------------------------------------------------------------------------
|
|
549
|
-
#ifdef _WIN32
|
|
550
|
-
typedef CRITICAL_SECTION dpiMutexType;
|
|
551
|
-
#define dpiMutex__initialize(m) InitializeCriticalSection(&m)
|
|
552
|
-
#define dpiMutex__destroy(m) DeleteCriticalSection(&m)
|
|
553
|
-
#define dpiMutex__acquire(m) EnterCriticalSection(&m)
|
|
554
|
-
#define dpiMutex__release(m) LeaveCriticalSection(&m)
|
|
555
|
-
#else
|
|
556
|
-
typedef pthread_mutex_t dpiMutexType;
|
|
557
|
-
#define dpiMutex__initialize(m) pthread_mutex_init(&m, NULL)
|
|
558
|
-
#define dpiMutex__destroy(m) pthread_mutex_destroy(&m)
|
|
559
|
-
#define dpiMutex__acquire(m) pthread_mutex_lock(&m)
|
|
560
|
-
#define dpiMutex__release(m) pthread_mutex_unlock(&m)
|
|
561
|
-
#endif
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
//-----------------------------------------------------------------------------
|
|
565
|
-
// old type definitions (to be dropped)
|
|
566
|
-
//-----------------------------------------------------------------------------
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
//-----------------------------------------------------------------------------
|
|
570
|
-
// OCI type definitions
|
|
571
|
-
//-----------------------------------------------------------------------------
|
|
572
|
-
|
|
573
|
-
// representation of OCI Number type
|
|
574
|
-
typedef struct {
|
|
575
|
-
unsigned char value[DPI_OCI_NUMBER_SIZE];
|
|
576
|
-
} dpiOciNumber;
|
|
577
|
-
|
|
578
|
-
// representation of OCI Date type
|
|
579
|
-
typedef struct {
|
|
580
|
-
int16_t year;
|
|
581
|
-
uint8_t month;
|
|
582
|
-
uint8_t day;
|
|
583
|
-
uint8_t hour;
|
|
584
|
-
uint8_t minute;
|
|
585
|
-
uint8_t second;
|
|
586
|
-
} dpiOciDate;
|
|
587
|
-
|
|
588
|
-
// representation of OCI XID type (two-phase commit)
|
|
589
|
-
typedef struct {
|
|
590
|
-
long formatID;
|
|
591
|
-
long gtrid_length;
|
|
592
|
-
long bqual_length;
|
|
593
|
-
char data[DPI_XA_XIDDATASIZE];
|
|
594
|
-
} dpiOciXID;
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
//-----------------------------------------------------------------------------
|
|
598
|
-
// Internal implementation type definitions
|
|
599
|
-
//-----------------------------------------------------------------------------
|
|
600
|
-
|
|
601
|
-
// used to manage a list of shared handles in a thread-safe manner; currently
|
|
602
|
-
// used for managing the list of open statements, LOBs and created objects for
|
|
603
|
-
// a connection (so that they can be closed before the connection itself is
|
|
604
|
-
// closed); the functions for managing this structure can be found in the file
|
|
605
|
-
// dpiHandleList.c; empty slots in the array are represented by a NULL handle
|
|
606
|
-
typedef struct {
|
|
607
|
-
void **handles; // array of handles managed by list
|
|
608
|
-
uint32_t numSlots; // length of handles array
|
|
609
|
-
uint32_t numUsedSlots; // actual number of managed handles
|
|
610
|
-
uint32_t currentPos; // next position to search
|
|
611
|
-
dpiMutexType mutex; // enables thread safety
|
|
612
|
-
} dpiHandleList;
|
|
613
|
-
|
|
614
|
-
// used to manage a pool of shared handles in a thread-safe manner; currently
|
|
615
|
-
// used for managing the pool of error handles in the dpiEnv structure; the
|
|
616
|
-
// functions for managing this structure are found in the file dpiHandlePool.c
|
|
617
|
-
typedef struct {
|
|
618
|
-
void **handles; // array of handles managed by pool
|
|
619
|
-
uint32_t numSlots; // length of handles array
|
|
620
|
-
uint32_t numUsedSlots; // actual number of managed handles
|
|
621
|
-
uint32_t acquirePos; // position from which to acquire
|
|
622
|
-
uint32_t releasePos; // position to place released handles
|
|
623
|
-
dpiMutexType mutex; // enables thread safety
|
|
624
|
-
} dpiHandlePool;
|
|
625
|
-
|
|
626
|
-
// used to save error information internally; one of these is stored for each
|
|
627
|
-
// thread using OCIThreadKeyGet() and OCIThreadKeySet() with a globally created
|
|
628
|
-
// OCI environment handle; it is also used when getting batch error information
|
|
629
|
-
// with the function dpiStmt_getBatchErrors()
|
|
630
|
-
typedef struct {
|
|
631
|
-
int32_t code; // Oracle error code or 0
|
|
632
|
-
uint16_t offset; // parse error offset or row offset
|
|
633
|
-
dpiErrorNum errorNum; // OCPI-C error number
|
|
634
|
-
const char *fnName; // ODPI-C function name
|
|
635
|
-
const char *action; // internal action
|
|
636
|
-
char encoding[DPI_OCI_NLS_MAXBUFSZ]; // encoding (IANA name)
|
|
637
|
-
char message[DPI_MAX_ERROR_SIZE]; // buffer for storing messages
|
|
638
|
-
uint32_t messageLength; // length of message in buffer
|
|
639
|
-
int isRecoverable; // is recoverable?
|
|
640
|
-
} dpiErrorBuffer;
|
|
641
|
-
|
|
642
|
-
// represents an OCI environment; a pointer to this structure is stored on each
|
|
643
|
-
// handle exposed publicly but it is created only when a pool is created or
|
|
644
|
-
// when a standalone connection is created; connections acquired from a pool
|
|
645
|
-
// shared the same environment as the pool; the functions for manipulating the
|
|
646
|
-
// environment are found in the file dpiEnv.c; all values are read-only after
|
|
647
|
-
// initialization of environment is complete
|
|
648
|
-
typedef struct {
|
|
649
|
-
const dpiContext *context; // context used to create environment
|
|
650
|
-
void *handle; // OCI environment handle
|
|
651
|
-
dpiMutexType mutex; // for reference count (threaded mode)
|
|
652
|
-
char encoding[DPI_OCI_NLS_MAXBUFSZ]; // CHAR encoding (IANA name)
|
|
653
|
-
int32_t maxBytesPerCharacter; // max bytes per CHAR character
|
|
654
|
-
uint16_t charsetId; // CHAR encoding (Oracle charset ID)
|
|
655
|
-
char nencoding[DPI_OCI_NLS_MAXBUFSZ]; // NCHAR encoding (IANA name)
|
|
656
|
-
int32_t nmaxBytesPerCharacter; // max bytes per NCHAR character
|
|
657
|
-
uint16_t ncharsetId; // NCHAR encoding (Oracle charset ID)
|
|
658
|
-
dpiHandlePool *errorHandles; // pool of OCI error handles
|
|
659
|
-
dpiVersionInfo *versionInfo; // OCI client version info
|
|
660
|
-
void *baseDate; // midnight, January 1, 1970
|
|
661
|
-
int threaded; // threaded mode enabled?
|
|
662
|
-
int events; // events mode enabled?
|
|
663
|
-
} dpiEnv;
|
|
664
|
-
|
|
665
|
-
// used to manage all errors that take place in the library; the implementation
|
|
666
|
-
// for the functions that use this structure are found in dpiError.c; a pointer
|
|
667
|
-
// to this structure is passed to all internal functions and the first thing
|
|
668
|
-
// that takes place in every public function is a call to this this error
|
|
669
|
-
// structure
|
|
670
|
-
typedef struct {
|
|
671
|
-
dpiErrorBuffer *buffer; // buffer to store error information
|
|
672
|
-
void *handle; // OCI error handle or NULL
|
|
673
|
-
dpiEnv *env; // env which created OCI error handle
|
|
674
|
-
} dpiError;
|
|
675
|
-
|
|
676
|
-
// function signature for all methods that free publicly exposed handles
|
|
677
|
-
typedef void (*dpiTypeFreeProc)(void*, dpiError*);
|
|
678
|
-
|
|
679
|
-
// strcture used to provide metadata for the different types of handles exposed
|
|
680
|
-
// publicly; a list of these structures (defined as constants) can be found in
|
|
681
|
-
// the file dpiGen.c; the enumeration dpiHandleTypeNum is used to identify the
|
|
682
|
-
// structures instead of being used directly
|
|
683
|
-
typedef struct {
|
|
684
|
-
const char *name; // name (used in error messages)
|
|
685
|
-
size_t size; // size of structure, in bytes
|
|
686
|
-
uint32_t checkInt; // check integer (unique)
|
|
687
|
-
dpiTypeFreeProc freeProc; // procedure to call to free handle
|
|
688
|
-
} dpiTypeDef;
|
|
689
|
-
|
|
690
|
-
// all structures exposed publicly by handle have these members
|
|
691
|
-
#define dpiType_HEAD \
|
|
692
|
-
const dpiTypeDef *typeDef; \
|
|
693
|
-
uint32_t checkInt; \
|
|
694
|
-
unsigned refCount; \
|
|
695
|
-
dpiEnv *env;
|
|
696
|
-
|
|
697
|
-
// contains the base attributes that all handles exposed publicly have; generic
|
|
698
|
-
// functions for checking and manipulating handles are found in the file
|
|
699
|
-
// dpiGen.c; the check integer is used to verify the validity of the handle and
|
|
700
|
-
// is reset to zero when the handle is freed; the reference count is used to
|
|
701
|
-
// manage how many references (either publicly or internally) are held; when
|
|
702
|
-
// the reference count reaches zero the handle is freed
|
|
703
|
-
typedef struct {
|
|
704
|
-
dpiType_HEAD
|
|
705
|
-
} dpiBaseType;
|
|
706
|
-
|
|
707
|
-
// represents the different types of Oracle data that the library supports; an
|
|
708
|
-
// array of these structures (defined as constants) can be found in the file
|
|
709
|
-
// dpiOracleType.c; the enumeration dpiOracleTypeNum is used to identify the
|
|
710
|
-
// structures
|
|
711
|
-
typedef struct dpiOracleType {
|
|
712
|
-
dpiOracleTypeNum oracleTypeNum; // enumeration value identifying type
|
|
713
|
-
dpiNativeTypeNum defaultNativeTypeNum; // default native (C) type
|
|
714
|
-
uint16_t oracleType; // OCI type code
|
|
715
|
-
uint8_t charsetForm; // specifies CHAR or NCHAR encoding
|
|
716
|
-
uint32_t sizeInBytes; // buffer size (fixed) or 0 (variable)
|
|
717
|
-
int isCharacterData; // is type character data?
|
|
718
|
-
int canBeInArray; // can type be in an index-by table?
|
|
719
|
-
int requiresPreFetch; // prefetch processing required?
|
|
720
|
-
} dpiOracleType;
|
|
721
|
-
|
|
722
|
-
// represents a chunk of data that has been allocated dynamically for use in
|
|
723
|
-
// dynamic fetching of LONG or LONG RAW columns, or when the calling
|
|
724
|
-
// application wishes to use strings or raw byte strings instead of LOBs; an
|
|
725
|
-
// array of these chunks is found in the structure dpiDynamicBytes
|
|
726
|
-
typedef struct {
|
|
727
|
-
char *ptr; // pointer to buffer
|
|
728
|
-
uint32_t length; // actual length of buffer
|
|
729
|
-
uint32_t allocatedLength; // allocated length of buffer
|
|
730
|
-
} dpiDynamicBytesChunk;
|
|
731
|
-
|
|
732
|
-
// represents a set of chunks allocated dynamically for use in dynamic fetching
|
|
733
|
-
// of LONG or LONG RAW columns, or when the calling application wishes to use
|
|
734
|
-
// strings or raw byte strings instead of LOBS
|
|
735
|
-
typedef struct {
|
|
736
|
-
uint32_t numChunks; // actual number of chunks
|
|
737
|
-
uint32_t allocatedChunks; // allocated number of chunks
|
|
738
|
-
dpiDynamicBytesChunk *chunks; // array of chunks
|
|
739
|
-
} dpiDynamicBytes;
|
|
740
|
-
|
|
741
|
-
// represents a single bound variable; an array of these is retained in the
|
|
742
|
-
// dpiStmt structure in order to retain references to the variables that were
|
|
743
|
-
// bound to the statement, which ensures that the values remain valid while the
|
|
744
|
-
// statement is executed; the position is populated for bind by position
|
|
745
|
-
// (otherwise it is 0) and the name/nameLength are populated for bind by name
|
|
746
|
-
// (otherwise they are NULL/0)
|
|
747
|
-
typedef struct {
|
|
748
|
-
dpiVar *var;
|
|
749
|
-
uint32_t pos;
|
|
750
|
-
const char *name;
|
|
751
|
-
uint32_t nameLength;
|
|
752
|
-
} dpiBindVar;
|
|
753
|
-
|
|
754
|
-
// intended to avoid the need for casts; contains references to LOBs, objects
|
|
755
|
-
// and statements (as part of dpiVar)
|
|
756
|
-
typedef union {
|
|
757
|
-
void *asHandle;
|
|
758
|
-
dpiObject *asObject;
|
|
759
|
-
dpiStmt *asStmt;
|
|
760
|
-
dpiLob *asLOB;
|
|
761
|
-
dpiRowid *asRowid;
|
|
762
|
-
} dpiReferenceBuffer;
|
|
763
|
-
|
|
764
|
-
// intended to avoid the need for casts; contains the actual values that are
|
|
765
|
-
// bound or fetched (as part of dpiVar); it is also used for getting data into
|
|
766
|
-
// and out of Oracle object instances
|
|
767
|
-
typedef union {
|
|
768
|
-
void *asRaw;
|
|
769
|
-
char *asBytes;
|
|
770
|
-
float *asFloat;
|
|
771
|
-
double *asDouble;
|
|
772
|
-
int64_t *asInt64;
|
|
773
|
-
uint64_t *asUint64;
|
|
774
|
-
dpiOciNumber *asNumber;
|
|
775
|
-
dpiOciDate *asDate;
|
|
776
|
-
void **asTimestamp;
|
|
777
|
-
void **asInterval;
|
|
778
|
-
void **asLobLocator;
|
|
779
|
-
void **asString;
|
|
780
|
-
void **asStmt;
|
|
781
|
-
void **asRowid;
|
|
782
|
-
int *asBoolean;
|
|
783
|
-
void **asObject;
|
|
784
|
-
void **asCollection;
|
|
785
|
-
} dpiOracleData;
|
|
786
|
-
|
|
787
|
-
// intended to avoid the need for casts; contains the memory needed to supply
|
|
788
|
-
// buffers to Oracle when values are being transferred to or from the Oracle
|
|
789
|
-
// database
|
|
790
|
-
typedef union {
|
|
791
|
-
int64_t asInt64;
|
|
792
|
-
uint64_t asUint64;
|
|
793
|
-
float asFloat;
|
|
794
|
-
double asDouble;
|
|
795
|
-
dpiOciNumber asNumber;
|
|
796
|
-
dpiOciDate asDate;
|
|
797
|
-
int asBoolean;
|
|
798
|
-
void *asString;
|
|
799
|
-
void *asTimestamp;
|
|
800
|
-
void *asLobLocator;
|
|
801
|
-
void *asRaw;
|
|
802
|
-
} dpiOracleDataBuffer;
|
|
803
|
-
|
|
804
|
-
// represents memory areas used for transferring data to and from the database
|
|
805
|
-
// and is used by the dpiVar structure; most statements only use one buffer,
|
|
806
|
-
// but DML returning statements can use multiple buffers since multiple rows
|
|
807
|
-
// can be returned for each execution of the statement
|
|
808
|
-
typedef struct {
|
|
809
|
-
uint32_t maxArraySize; // max number of rows in arrays
|
|
810
|
-
uint32_t actualArraySize; // actual number of rows in arrays
|
|
811
|
-
int16_t *indicator; // array of indicator values
|
|
812
|
-
uint16_t *returnCode; // array of return code values
|
|
813
|
-
uint16_t *actualLength16; // array of actual lengths (11.2 only)
|
|
814
|
-
uint32_t *actualLength32; // array of actual lengths (12.1+)
|
|
815
|
-
void **objectIndicator; // array of object indicator values
|
|
816
|
-
dpiReferenceBuffer *references; // array of references (specific types)
|
|
817
|
-
dpiDynamicBytes *dynamicBytes; // array of dynamically alloced chunks
|
|
818
|
-
char *tempBuffer; // buffer for numeric conversion
|
|
819
|
-
dpiData *externalData; // array of buffers (externally used)
|
|
820
|
-
dpiOracleData data; // Oracle data buffers (internal only)
|
|
821
|
-
} dpiVarBuffer;
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
//-----------------------------------------------------------------------------
|
|
825
|
-
// External implementation type definitions
|
|
826
|
-
//-----------------------------------------------------------------------------
|
|
827
|
-
|
|
828
|
-
// represents session pools and is exposed publicly as a handle of type
|
|
829
|
-
// DPI_HTYPE_POOL; the implementation for this is found in the file
|
|
830
|
-
// dpiPool.c
|
|
831
|
-
struct dpiPool {
|
|
832
|
-
dpiType_HEAD
|
|
833
|
-
void *handle; // OCI session pool handle
|
|
834
|
-
const char *name; // pool name (CHAR encoding)
|
|
835
|
-
uint32_t nameLength; // length of pool name
|
|
836
|
-
int pingInterval; // interval (seconds) between pings
|
|
837
|
-
int pingTimeout; // timeout (milliseconds) for ping
|
|
838
|
-
int homogeneous; // homogeneous pool?
|
|
839
|
-
int externalAuth; // use external authentication?
|
|
840
|
-
};
|
|
841
|
-
|
|
842
|
-
// represents connections to the database and is exposed publicly as a handle
|
|
843
|
-
// of type DPI_HTYPE_CONN; the implementation for this is found in the file
|
|
844
|
-
// dpiConn.c; the list of statement, LOB and object handles created by this
|
|
845
|
-
// connection is maintained and all of these are automatically closed when the
|
|
846
|
-
// connection itself is closed (in order to avoid memory leaks and segfaults if
|
|
847
|
-
// the correct order is not observed)
|
|
848
|
-
struct dpiConn {
|
|
849
|
-
dpiType_HEAD
|
|
850
|
-
dpiPool *pool; // pool acquired from or NULL
|
|
851
|
-
void *handle; // OCI service context handle
|
|
852
|
-
void *serverHandle; // OCI server handle
|
|
853
|
-
void *sessionHandle; // OCI session handle
|
|
854
|
-
const char *releaseString; // cached release string or NULL
|
|
855
|
-
uint32_t releaseStringLength; // cached release string length or 0
|
|
856
|
-
dpiVersionInfo versionInfo; // Oracle database version info
|
|
857
|
-
uint32_t commitMode; // commit mode (for two-phase commits)
|
|
858
|
-
uint16_t charsetId; // database character set ID
|
|
859
|
-
dpiHandleList *openStmts; // list of statements created
|
|
860
|
-
dpiHandleList *openLobs; // list of LOBs created
|
|
861
|
-
dpiHandleList *objects; // list of objects created
|
|
862
|
-
int externalHandle; // OCI handle provided directly?
|
|
863
|
-
int deadSession; // dead session (drop from pool)?
|
|
864
|
-
int standalone; // standalone connection (not pooled)?
|
|
865
|
-
int closing; // connection is being closed?
|
|
866
|
-
};
|
|
867
|
-
|
|
868
|
-
// represents the context in which all activity in the library takes place; the
|
|
869
|
-
// implementation for this is found in the file dpiContext.c; the minor
|
|
870
|
-
// version of the calling application is retained in order to adjust as needed
|
|
871
|
-
// for differing sizes of public structures
|
|
872
|
-
struct dpiContext {
|
|
873
|
-
dpiType_HEAD
|
|
874
|
-
dpiVersionInfo *versionInfo; // OCI client version info
|
|
875
|
-
uint8_t dpiMinorVersion; // ODPI-C minor version of application
|
|
876
|
-
};
|
|
877
|
-
|
|
878
|
-
// represents statements of all types (queries, DML, DDL, PL/SQL) and is
|
|
879
|
-
// exposed publicly as a handle of type DPI_HTYPE_STMT; the implementation for
|
|
880
|
-
// this is found in the file dpiStmt.c
|
|
881
|
-
struct dpiStmt {
|
|
882
|
-
dpiType_HEAD
|
|
883
|
-
dpiConn *conn; // connection which created this
|
|
884
|
-
uint32_t openSlotNum; // slot in connection handle list
|
|
885
|
-
void *handle; // OCI statement handle
|
|
886
|
-
uint32_t fetchArraySize; // rows to fetch each time
|
|
887
|
-
uint32_t bufferRowCount; // number of rows in fetch buffers
|
|
888
|
-
uint32_t bufferRowIndex; // index into buffers for current row
|
|
889
|
-
uint32_t numQueryVars; // number of query variables
|
|
890
|
-
dpiVar **queryVars; // array of query variables
|
|
891
|
-
dpiQueryInfo *queryInfo; // array of query metadata
|
|
892
|
-
uint32_t allocatedBindVars; // number of allocated bind variables
|
|
893
|
-
uint32_t numBindVars; // actual nubmer of bind variables
|
|
894
|
-
dpiBindVar *bindVars; // array of bind variables
|
|
895
|
-
uint32_t numBatchErrors; // number of batch errors
|
|
896
|
-
dpiErrorBuffer *batchErrors; // array of batch errors
|
|
897
|
-
uint64_t rowCount; // rows affected or rows fetched so far
|
|
898
|
-
uint64_t bufferMinRow; // row num of first row in buffers
|
|
899
|
-
uint16_t statementType; // type of statement
|
|
900
|
-
int isOwned; // owned by structure?
|
|
901
|
-
int hasRowsToFetch; // potentially more rows to fetch?
|
|
902
|
-
int scrollable; // scrollable cursor?
|
|
903
|
-
int isReturning; // statement has RETURNING clause?
|
|
904
|
-
int deleteFromCache; // drop from statement cache on close?
|
|
905
|
-
int closing; // statement is being closed?
|
|
906
|
-
};
|
|
907
|
-
|
|
908
|
-
// represents memory areas used for transferring data to and from the database
|
|
909
|
-
// and is exposed publicly as a handle of type DPI_HTYPE_VAR; the
|
|
910
|
-
// implementation for this is found in the file dpiVar.c; variables can be
|
|
911
|
-
// bound to a statement or fetched into by a statement
|
|
912
|
-
struct dpiVar {
|
|
913
|
-
dpiType_HEAD
|
|
914
|
-
dpiConn *conn; // connection which created this
|
|
915
|
-
const dpiOracleType *type; // type of data contained in variable
|
|
916
|
-
dpiNativeTypeNum nativeTypeNum; // native (C) type of data
|
|
917
|
-
int requiresPreFetch; // requires prefetch processing?
|
|
918
|
-
int isArray; // is an index-by table (array)?
|
|
919
|
-
uint32_t sizeInBytes; // size in bytes of each row
|
|
920
|
-
int isDynamic; // dynamically bound or defined?
|
|
921
|
-
dpiObjectType *objectType; // object type (or NULL)
|
|
922
|
-
dpiVarBuffer buffer; // main buffer for data
|
|
923
|
-
dpiVarBuffer *dynBindBuffers; // array of buffers (DML returning)
|
|
924
|
-
dpiError *error; // error (only for dynamic bind/define)
|
|
925
|
-
};
|
|
926
|
-
|
|
927
|
-
// represents large objects (CLOB, BLOB, NCLOB and BFILE) and is exposed
|
|
928
|
-
// publicly as a handle of type DPI_HTYPE_LOB; the implementation for this is
|
|
929
|
-
// found in the file dpiLob.c
|
|
930
|
-
struct dpiLob {
|
|
931
|
-
dpiType_HEAD
|
|
932
|
-
dpiConn *conn; // connection which created this
|
|
933
|
-
uint32_t openSlotNum; // slot in connection handle list
|
|
934
|
-
const dpiOracleType *type; // type of LOB
|
|
935
|
-
void *locator; // OCI LOB locator descriptor
|
|
936
|
-
char *buffer; // stores dir alias/name for BFILE
|
|
937
|
-
int closing; // is LOB being closed?
|
|
938
|
-
};
|
|
939
|
-
|
|
940
|
-
// represents object attributes of the types created by the SQL command CREATE
|
|
941
|
-
// OR REPLACE TYPE and is exposed publicly as a handle of type
|
|
942
|
-
// DPI_HTYPE_OBJECT_ATTR; the implementation for this is found in the file
|
|
943
|
-
// dpiObjectAttr.c
|
|
944
|
-
struct dpiObjectAttr {
|
|
945
|
-
dpiType_HEAD
|
|
946
|
-
dpiObjectType *belongsToType; // type attribute belongs to
|
|
947
|
-
const char *name; // name of attribute (CHAR encoding)
|
|
948
|
-
uint32_t nameLength; // length of name of attribute
|
|
949
|
-
dpiDataTypeInfo typeInfo; // attribute data type info
|
|
950
|
-
};
|
|
951
|
-
|
|
952
|
-
// represents types created by the SQL command CREATE OR REPLACE TYPE and is
|
|
953
|
-
// exposed publicly as a handle of type DPI_HTYPE_OBJECT_TYPE; the
|
|
954
|
-
// implementation for this is found in the file dpiObjectType.c
|
|
955
|
-
struct dpiObjectType {
|
|
956
|
-
dpiType_HEAD
|
|
957
|
-
dpiConn *conn; // connection which created this
|
|
958
|
-
void *tdo; // OCI type descriptor object
|
|
959
|
-
uint16_t typeCode; // OCI type code
|
|
960
|
-
const char *schema; // schema owning type (CHAR encoding)
|
|
961
|
-
uint32_t schemaLength; // length of schema owning type
|
|
962
|
-
const char *name; // name of type (CHAR encoding)
|
|
963
|
-
uint32_t nameLength; // length of name of type
|
|
964
|
-
dpiDataTypeInfo elementTypeInfo; // type info of elements of collection
|
|
965
|
-
int isCollection; // is type a collection?
|
|
966
|
-
uint16_t numAttributes; // number of attributes type has
|
|
967
|
-
};
|
|
968
|
-
|
|
969
|
-
// represents objects of the types created by the SQL command CREATE OR REPLACE
|
|
970
|
-
// TYPE and is exposed publicly as a handle of type DPI_HTYPE_OBJECT; the
|
|
971
|
-
// implementation for this is found in the file dpiObject.c
|
|
972
|
-
struct dpiObject {
|
|
973
|
-
dpiType_HEAD
|
|
974
|
-
dpiObjectType *type; // type of object
|
|
975
|
-
uint32_t openSlotNum; // slot in connection handle list
|
|
976
|
-
void *instance; // OCI instance
|
|
977
|
-
void *indicator; // OCI indicator
|
|
978
|
-
dpiObject *dependsOnObj; // extracted from parent obj, or NULL
|
|
979
|
-
int freeIndicator; // should indicator be freed?
|
|
980
|
-
int closing; // is object being closed?
|
|
981
|
-
};
|
|
982
|
-
|
|
983
|
-
// represents the unique identifier of a row in Oracle Database and is exposed
|
|
984
|
-
// publicly as a handle of type DPI_HTYPE_ROWID; the implementation for this is
|
|
985
|
-
// found in the file dpiRowid.c
|
|
986
|
-
struct dpiRowid {
|
|
987
|
-
dpiType_HEAD
|
|
988
|
-
void *handle; // OCI rowid descriptor
|
|
989
|
-
char *buffer; // cached string rep (or NULL)
|
|
990
|
-
uint16_t bufferLength; // length of string rep (or 0)
|
|
991
|
-
};
|
|
992
|
-
|
|
993
|
-
// represents a subscription to events such as continuous query notification
|
|
994
|
-
// (CQN) and object change notification and is exposed publicly as a handle of
|
|
995
|
-
// type DPI_HTYPE_SUBSCR; the implementation for this is found in the file
|
|
996
|
-
// dpiSubscr.c
|
|
997
|
-
struct dpiSubscr {
|
|
998
|
-
dpiType_HEAD
|
|
999
|
-
dpiConn *conn; // connection which created this
|
|
1000
|
-
void *handle; // OCI subscription handle
|
|
1001
|
-
dpiSubscrNamespace subscrNamespace; // OCI namespace
|
|
1002
|
-
dpiSubscrQOS qos; // quality of service flags
|
|
1003
|
-
dpiSubscrCallback callback; // callback when event is propagated
|
|
1004
|
-
void *callbackContext; // context pointer for callback
|
|
1005
|
-
int registered; // registered with database?
|
|
1006
|
-
};
|
|
1007
|
-
|
|
1008
|
-
// represents the available options for dequeueing messages when using advanced
|
|
1009
|
-
// queueing and is exposed publicly as a handle of type DPI_HTYPE_DEQ_OPTIONS;
|
|
1010
|
-
// the implementation for this is found in dpiDeqOptions.c
|
|
1011
|
-
struct dpiDeqOptions {
|
|
1012
|
-
dpiType_HEAD
|
|
1013
|
-
dpiConn *conn; // connection which created this
|
|
1014
|
-
void *handle; // OCI dequeue options handle
|
|
1015
|
-
};
|
|
1016
|
-
|
|
1017
|
-
// represents the available options for enqueueing messages when using advanced
|
|
1018
|
-
// queueing and is exposed publicly as a handle of type DPI_HTYPE_ENQ_OPTIONS;
|
|
1019
|
-
// the implementation for this is found in dpiEnqOptions.c
|
|
1020
|
-
struct dpiEnqOptions {
|
|
1021
|
-
dpiType_HEAD
|
|
1022
|
-
dpiConn *conn; // connection which created this
|
|
1023
|
-
void *handle; // OCI enqueue options handle
|
|
1024
|
-
};
|
|
1025
|
-
|
|
1026
|
-
// represents the available properties for message when using advanced queuing
|
|
1027
|
-
// and is exposed publicly as a handle of type DPI_HTYPE_MSG_PROPS; the
|
|
1028
|
-
// implementation for this is found in the file dpiMsgProps.c
|
|
1029
|
-
struct dpiMsgProps {
|
|
1030
|
-
dpiType_HEAD
|
|
1031
|
-
dpiConn *conn; // connection which created this
|
|
1032
|
-
void *handle; // OCI message properties handle
|
|
1033
|
-
char *buffer; // latest message ID en/dequeued
|
|
1034
|
-
uint32_t bufferLength; // size of allocated buffer
|
|
1035
|
-
};
|
|
1036
|
-
|
|
1037
|
-
// represents SODA collections and is exposed publicly as a handle of type
|
|
1038
|
-
// DPI_HTYPE_SODA_COLL; the implementation for this is found in the file
|
|
1039
|
-
// dpiSodaColl.c
|
|
1040
|
-
struct dpiSodaColl {
|
|
1041
|
-
dpiType_HEAD
|
|
1042
|
-
dpiSodaDb *db; // database which created this
|
|
1043
|
-
void *handle; // OCI SODA collection handle
|
|
1044
|
-
int binaryContent; // content stored in BLOB?
|
|
1045
|
-
};
|
|
1046
|
-
|
|
1047
|
-
// represents cursors that iterate over SODA collections and is exposed
|
|
1048
|
-
// publicly as a handle of type DPI_HTYPE_SODA_COLL_CURSOR; the implementation
|
|
1049
|
-
// for this is found in the file dpiSodaCollCursor.c
|
|
1050
|
-
struct dpiSodaCollCursor {
|
|
1051
|
-
dpiType_HEAD
|
|
1052
|
-
dpiSodaDb *db; // database which created this
|
|
1053
|
-
void *handle; // OCI SODA collection cursor handle
|
|
1054
|
-
};
|
|
1055
|
-
|
|
1056
|
-
// represents a SODA database (contains SODA collections) and is exposed
|
|
1057
|
-
// publicly as a handle of type DPI_HTYPE_SODA_DB; the implementation for this
|
|
1058
|
-
// is found in the file dpiSodaDb.c
|
|
1059
|
-
struct dpiSodaDb {
|
|
1060
|
-
dpiType_HEAD
|
|
1061
|
-
dpiConn *conn; // connection which created this
|
|
1062
|
-
};
|
|
1063
|
-
|
|
1064
|
-
// represents a SODA document and is exposed publicly as a handle of type
|
|
1065
|
-
// DPI_HTYPE_SODA_DOC; the implementation for this is found in the file
|
|
1066
|
-
// dpiSodaDoc.c
|
|
1067
|
-
struct dpiSodaDoc {
|
|
1068
|
-
dpiType_HEAD
|
|
1069
|
-
dpiSodaDb *db; // database which created this
|
|
1070
|
-
void *handle; // OCI SODA document handle
|
|
1071
|
-
int binaryContent; // binary content?
|
|
1072
|
-
};
|
|
1073
|
-
|
|
1074
|
-
// represents a SODA document cursor and is exposed publicly as a handle of
|
|
1075
|
-
// type DPI_HTYPE_SODA_DOC_CURSOR; the implementation for this is found in the
|
|
1076
|
-
// file dpiSodaDocCursor.c
|
|
1077
|
-
struct dpiSodaDocCursor {
|
|
1078
|
-
dpiType_HEAD
|
|
1079
|
-
dpiSodaColl *coll; // collection which created this
|
|
1080
|
-
void *handle; // OCI SODA document cursor handle
|
|
1081
|
-
};
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
//-----------------------------------------------------------------------------
|
|
1085
|
-
// definition of internal dpiContext methods
|
|
1086
|
-
//-----------------------------------------------------------------------------
|
|
1087
|
-
void dpiContext__initCommonCreateParams(dpiCommonCreateParams *params);
|
|
1088
|
-
void dpiContext__initConnCreateParams(dpiConnCreateParams *params);
|
|
1089
|
-
void dpiContext__initPoolCreateParams(dpiPoolCreateParams *params);
|
|
1090
|
-
void dpiContext__initSodaOperOptions(dpiSodaOperOptions *options);
|
|
1091
|
-
void dpiContext__initSubscrCreateParams(dpiSubscrCreateParams *params);
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
//-----------------------------------------------------------------------------
|
|
1095
|
-
// definition of internal dpiDataBuffer methods
|
|
1096
|
-
//-----------------------------------------------------------------------------
|
|
1097
|
-
int dpiDataBuffer__fromOracleDate(dpiDataBuffer *data,
|
|
1098
|
-
dpiOciDate *oracleValue);
|
|
1099
|
-
int dpiDataBuffer__fromOracleIntervalDS(dpiDataBuffer *data, dpiEnv *env,
|
|
1100
|
-
dpiError *error, void *oracleValue);
|
|
1101
|
-
int dpiDataBuffer__fromOracleIntervalYM(dpiDataBuffer *data, dpiEnv *env,
|
|
1102
|
-
dpiError *error, void *oracleValue);
|
|
1103
|
-
int dpiDataBuffer__fromOracleNumberAsDouble(dpiDataBuffer *data,
|
|
1104
|
-
dpiError *error, void *oracleValue);
|
|
1105
|
-
int dpiDataBuffer__fromOracleNumberAsInteger(dpiDataBuffer *data,
|
|
1106
|
-
dpiError *error, void *oracleValue);
|
|
1107
|
-
int dpiDataBuffer__fromOracleNumberAsText(dpiDataBuffer *data, dpiEnv *env,
|
|
1108
|
-
dpiError *error, void *oracleValue);
|
|
1109
|
-
int dpiDataBuffer__fromOracleNumberAsUnsignedInteger(dpiDataBuffer *data,
|
|
1110
|
-
dpiError *error, void *oracleValue);
|
|
1111
|
-
int dpiDataBuffer__fromOracleTimestamp(dpiDataBuffer *data, dpiEnv *env,
|
|
1112
|
-
dpiError *error, void *oracleValue, int withTZ);
|
|
1113
|
-
int dpiDataBuffer__fromOracleTimestampAsDouble(dpiDataBuffer *data,
|
|
1114
|
-
dpiEnv *env, dpiError *error, void *oracleValue);
|
|
1115
|
-
int dpiDataBuffer__toOracleDate(dpiDataBuffer *data, dpiOciDate *oracleValue);
|
|
1116
|
-
int dpiDataBuffer__toOracleIntervalDS(dpiDataBuffer *data, dpiEnv *env,
|
|
1117
|
-
dpiError *error, void *oracleValue);
|
|
1118
|
-
int dpiDataBuffer__toOracleIntervalYM(dpiDataBuffer *data, dpiEnv *env,
|
|
1119
|
-
dpiError *error, void *oracleValue);
|
|
1120
|
-
int dpiDataBuffer__toOracleNumberFromDouble(dpiDataBuffer *data,
|
|
1121
|
-
dpiError *error, void *oracleValue);
|
|
1122
|
-
int dpiDataBuffer__toOracleNumberFromInteger(dpiDataBuffer *data,
|
|
1123
|
-
dpiError *error, void *oracleValue);
|
|
1124
|
-
int dpiDataBuffer__toOracleNumberFromText(dpiDataBuffer *data, dpiEnv *env,
|
|
1125
|
-
dpiError *error, void *oracleValue);
|
|
1126
|
-
int dpiDataBuffer__toOracleNumberFromUnsignedInteger(dpiDataBuffer *data,
|
|
1127
|
-
dpiError *error, void *oracleValue);
|
|
1128
|
-
int dpiDataBuffer__toOracleTimestamp(dpiDataBuffer *data, dpiEnv *env,
|
|
1129
|
-
dpiError *error, void *oracleValue, int withTZ);
|
|
1130
|
-
int dpiDataBuffer__toOracleTimestampFromDouble(dpiDataBuffer *data,
|
|
1131
|
-
dpiEnv *env, dpiError *error, void *oracleValue);
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
//-----------------------------------------------------------------------------
|
|
1135
|
-
// definition of internal dpiEnv methods
|
|
1136
|
-
//-----------------------------------------------------------------------------
|
|
1137
|
-
void dpiEnv__free(dpiEnv *env, dpiError *error);
|
|
1138
|
-
int dpiEnv__init(dpiEnv *env, const dpiContext *context,
|
|
1139
|
-
const dpiCommonCreateParams *params, dpiError *error);
|
|
1140
|
-
int dpiEnv__getEncodingInfo(dpiEnv *env, dpiEncodingInfo *info);
|
|
1141
|
-
int dpiEnv__initError(dpiEnv *env, dpiError *error);
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
//-----------------------------------------------------------------------------
|
|
1145
|
-
// definition of internal dpiError methods
|
|
1146
|
-
//-----------------------------------------------------------------------------
|
|
1147
|
-
int dpiError__check(dpiError *error, int status, dpiConn *conn,
|
|
1148
|
-
const char *action);
|
|
1149
|
-
int dpiError__getInfo(dpiError *error, dpiErrorInfo *info);
|
|
1150
|
-
int dpiError__set(dpiError *error, const char *context, dpiErrorNum errorNum,
|
|
1151
|
-
...);
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
//-----------------------------------------------------------------------------
|
|
1155
|
-
// definition of internal dpiGen methods
|
|
1156
|
-
//-----------------------------------------------------------------------------
|
|
1157
|
-
int dpiGen__addRef(void *ptr, dpiHandleTypeNum typeNum, const char *fnName);
|
|
1158
|
-
int dpiGen__allocate(dpiHandleTypeNum typeNum, dpiEnv *env, void **handle,
|
|
1159
|
-
dpiError *error);
|
|
1160
|
-
int dpiGen__checkHandle(const void *ptr, dpiHandleTypeNum typeNum,
|
|
1161
|
-
const char *context, dpiError *error);
|
|
1162
|
-
int dpiGen__endPublicFn(const void *ptr, int returnValue, dpiError *error);
|
|
1163
|
-
int dpiGen__release(void *ptr, dpiHandleTypeNum typeNum, const char *fnName);
|
|
1164
|
-
void dpiGen__setRefCount(void *ptr, dpiError *error, int increment);
|
|
1165
|
-
int dpiGen__startPublicFn(const void *ptr, dpiHandleTypeNum typeNum,
|
|
1166
|
-
const char *fnName, int needErrorHandle, dpiError *error);
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
//-----------------------------------------------------------------------------
|
|
1170
|
-
// definition of internal dpiGlobal methods
|
|
1171
|
-
//-----------------------------------------------------------------------------
|
|
1172
|
-
int dpiGlobal__initError(const char *fnName, dpiError *error);
|
|
1173
|
-
int dpiGlobal__lookupCharSet(const char *name, uint16_t *charsetId,
|
|
1174
|
-
dpiError *error);
|
|
1175
|
-
int dpiGlobal__lookupEncoding(uint16_t charsetId, char *encoding,
|
|
1176
|
-
dpiError *error);
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
//-----------------------------------------------------------------------------
|
|
1180
|
-
// definition of internal dpiOracleType methods
|
|
1181
|
-
//-----------------------------------------------------------------------------
|
|
1182
|
-
const dpiOracleType *dpiOracleType__getFromNum(dpiOracleTypeNum oracleTypeNum,
|
|
1183
|
-
dpiError *error);
|
|
1184
|
-
int dpiOracleType__populateTypeInfo(dpiConn *conn, void *handle,
|
|
1185
|
-
uint32_t handleType, dpiDataTypeInfo *info, dpiError *error);
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
//-----------------------------------------------------------------------------
|
|
1189
|
-
// definition of internal dpiConn methods
|
|
1190
|
-
//-----------------------------------------------------------------------------
|
|
1191
|
-
int dpiConn__checkConnected(dpiConn *conn, dpiError *error);
|
|
1192
|
-
int dpiConn__create(dpiConn *conn, const dpiContext *context,
|
|
1193
|
-
const char *userName, uint32_t userNameLength, const char *password,
|
|
1194
|
-
uint32_t passwordLength, const char *connectString,
|
|
1195
|
-
uint32_t connectStringLength, dpiPool *pool,
|
|
1196
|
-
const dpiCommonCreateParams *commonParams,
|
|
1197
|
-
dpiConnCreateParams *createParams, dpiError *error);
|
|
1198
|
-
void dpiConn__free(dpiConn *conn, dpiError *error);
|
|
1199
|
-
int dpiConn__getServerVersion(dpiConn *conn, dpiError *error);
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
//-----------------------------------------------------------------------------
|
|
1203
|
-
// definition of internal dpiPool methods
|
|
1204
|
-
//-----------------------------------------------------------------------------
|
|
1205
|
-
int dpiPool__acquireConnection(dpiPool *pool, const char *userName,
|
|
1206
|
-
uint32_t userNameLength, const char *password, uint32_t passwordLength,
|
|
1207
|
-
dpiConnCreateParams *params, dpiConn **conn, dpiError *error);
|
|
1208
|
-
void dpiPool__free(dpiPool *pool, dpiError *error);
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
//-----------------------------------------------------------------------------
|
|
1212
|
-
// definition of internal dpiStmt methods
|
|
1213
|
-
//-----------------------------------------------------------------------------
|
|
1214
|
-
int dpiStmt__allocate(dpiConn *conn, int scrollable, dpiStmt **stmt,
|
|
1215
|
-
dpiError *error);
|
|
1216
|
-
int dpiStmt__close(dpiStmt *stmt, const char *tag, uint32_t tagLength,
|
|
1217
|
-
int propagateErrors, dpiError *error);
|
|
1218
|
-
void dpiStmt__free(dpiStmt *stmt, dpiError *error);
|
|
1219
|
-
int dpiStmt__init(dpiStmt *stmt, dpiError *error);
|
|
1220
|
-
int dpiStmt__prepare(dpiStmt *stmt, const char *sql, uint32_t sqlLength,
|
|
1221
|
-
const char *tag, uint32_t tagLength, dpiError *error);
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
//-----------------------------------------------------------------------------
|
|
1225
|
-
// definition of internal dpiVar methods
|
|
1226
|
-
//-----------------------------------------------------------------------------
|
|
1227
|
-
int dpiVar__allocate(dpiConn *conn, dpiOracleTypeNum oracleTypeNum,
|
|
1228
|
-
dpiNativeTypeNum nativeTypeNum, uint32_t maxArraySize, uint32_t size,
|
|
1229
|
-
int sizeIsBytes, int isArray, dpiObjectType *objType, dpiVar **var,
|
|
1230
|
-
dpiData **data, dpiError *error);
|
|
1231
|
-
int dpiVar__convertToLob(dpiVar *var, dpiError *error);
|
|
1232
|
-
int dpiVar__copyData(dpiVar *var, uint32_t pos, dpiData *sourceData,
|
|
1233
|
-
dpiError *error);
|
|
1234
|
-
int32_t dpiVar__defineCallback(dpiVar *var, void *defnp, uint32_t iter,
|
|
1235
|
-
void **bufpp, uint32_t **alenpp, uint8_t *piecep, void **indpp,
|
|
1236
|
-
uint16_t **rcodepp);
|
|
1237
|
-
int dpiVar__extendedPreFetch(dpiVar *var, dpiVarBuffer *buffer,
|
|
1238
|
-
dpiError *error);
|
|
1239
|
-
void dpiVar__free(dpiVar *var, dpiError *error);
|
|
1240
|
-
int32_t dpiVar__inBindCallback(dpiVar *var, void *bindp, uint32_t iter,
|
|
1241
|
-
uint32_t index, void **bufpp, uint32_t *alenp, uint8_t *piecep,
|
|
1242
|
-
void **indpp);
|
|
1243
|
-
int dpiVar__getValue(dpiVar *var, dpiVarBuffer *buffer, uint32_t pos,
|
|
1244
|
-
int inFetch, dpiError *error);
|
|
1245
|
-
int dpiVar__setValue(dpiVar *var, dpiVarBuffer *buffer, uint32_t pos,
|
|
1246
|
-
dpiData *data, dpiError *error);
|
|
1247
|
-
int32_t dpiVar__outBindCallback(dpiVar *var, void *bindp, uint32_t iter,
|
|
1248
|
-
uint32_t index, void **bufpp, uint32_t **alenpp, uint8_t *piecep,
|
|
1249
|
-
void **indpp, uint16_t **rcodepp);
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
//-----------------------------------------------------------------------------
|
|
1253
|
-
// definition of internal dpiLob methods
|
|
1254
|
-
//-----------------------------------------------------------------------------
|
|
1255
|
-
int dpiLob__allocate(dpiConn *conn, const dpiOracleType *type, dpiLob **lob,
|
|
1256
|
-
dpiError *error);
|
|
1257
|
-
int dpiLob__close(dpiLob *lob, int propagateErrors, dpiError *error);
|
|
1258
|
-
void dpiLob__free(dpiLob *lob, dpiError *error);
|
|
1259
|
-
int dpiLob__readBytes(dpiLob *lob, uint64_t offset, uint64_t amount,
|
|
1260
|
-
char *value, uint64_t *valueLength, dpiError *error);
|
|
1261
|
-
int dpiLob__setFromBytes(dpiLob *lob, const char *value, uint64_t valueLength,
|
|
1262
|
-
dpiError *error);
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
//-----------------------------------------------------------------------------
|
|
1266
|
-
// definition of internal dpiObject methods
|
|
1267
|
-
//-----------------------------------------------------------------------------
|
|
1268
|
-
int dpiObject__allocate(dpiObjectType *objType, void *instance,
|
|
1269
|
-
void *indicator, dpiObject *dependsOnObj, dpiObject **obj,
|
|
1270
|
-
dpiError *error);
|
|
1271
|
-
int dpiObject__close(dpiObject *obj, int propagateErrors, dpiError *error);
|
|
1272
|
-
void dpiObject__free(dpiObject *obj, dpiError *error);
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
//-----------------------------------------------------------------------------
|
|
1276
|
-
// definition of internal dpiObjectType methods
|
|
1277
|
-
//-----------------------------------------------------------------------------
|
|
1278
|
-
int dpiObjectType__allocate(dpiConn *conn, void *param,
|
|
1279
|
-
uint32_t nameAttribute, dpiObjectType **objType, dpiError *error);
|
|
1280
|
-
void dpiObjectType__free(dpiObjectType *objType, dpiError *error);
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
//-----------------------------------------------------------------------------
|
|
1284
|
-
// definition of internal dpiObjectAttr methods
|
|
1285
|
-
//-----------------------------------------------------------------------------
|
|
1286
|
-
int dpiObjectAttr__allocate(dpiObjectType *objType, void *param,
|
|
1287
|
-
dpiObjectAttr **attr, dpiError *error);
|
|
1288
|
-
int dpiObjectAttr__check(dpiObjectAttr *attr, dpiError *error);
|
|
1289
|
-
void dpiObjectAttr__free(dpiObjectAttr *attr, dpiError *error);
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
//-----------------------------------------------------------------------------
|
|
1293
|
-
// definition of internal dpiRowid methods
|
|
1294
|
-
//-----------------------------------------------------------------------------
|
|
1295
|
-
int dpiRowid__allocate(dpiConn *conn, dpiRowid **rowid, dpiError *error);
|
|
1296
|
-
void dpiRowid__free(dpiRowid *rowid, dpiError *error);
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
//-----------------------------------------------------------------------------
|
|
1300
|
-
// definition of internal dpiSubscr methods
|
|
1301
|
-
//-----------------------------------------------------------------------------
|
|
1302
|
-
void dpiSubscr__free(dpiSubscr *subscr, dpiError *error);
|
|
1303
|
-
int dpiSubscr__create(dpiSubscr *subscr, dpiConn *conn,
|
|
1304
|
-
dpiSubscrCreateParams *params, dpiError *error);
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
//-----------------------------------------------------------------------------
|
|
1308
|
-
// definition of internal dpiDeqOptions methods
|
|
1309
|
-
//-----------------------------------------------------------------------------
|
|
1310
|
-
int dpiDeqOptions__create(dpiDeqOptions *options, dpiConn *conn,
|
|
1311
|
-
dpiError *error);
|
|
1312
|
-
void dpiDeqOptions__free(dpiDeqOptions *options, dpiError *error);
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
//-----------------------------------------------------------------------------
|
|
1316
|
-
// definition of internal dpiEnqOptions methods
|
|
1317
|
-
//-----------------------------------------------------------------------------
|
|
1318
|
-
int dpiEnqOptions__create(dpiEnqOptions *options, dpiConn *conn,
|
|
1319
|
-
dpiError *error);
|
|
1320
|
-
void dpiEnqOptions__free(dpiEnqOptions *options, dpiError *error);
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
//-----------------------------------------------------------------------------
|
|
1324
|
-
// definition of internal dpiSodaColl methods
|
|
1325
|
-
//-----------------------------------------------------------------------------
|
|
1326
|
-
int dpiSodaColl__allocate(dpiSodaDb *db, void *handle, dpiSodaColl **coll,
|
|
1327
|
-
dpiError *error);
|
|
1328
|
-
void dpiSodaColl__free(dpiSodaColl *coll, dpiError *error);
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
//-----------------------------------------------------------------------------
|
|
1332
|
-
// definition of internal dpiSodaCollCursor methods
|
|
1333
|
-
//-----------------------------------------------------------------------------
|
|
1334
|
-
int dpiSodaCollCursor__allocate(dpiSodaDb *db, void *handle,
|
|
1335
|
-
dpiSodaCollCursor **cursor, dpiError *error);
|
|
1336
|
-
void dpiSodaCollCursor__free(dpiSodaCollCursor *cursor, dpiError *error);
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
//-----------------------------------------------------------------------------
|
|
1340
|
-
// definition of internal dpiSodaDb methods
|
|
1341
|
-
//-----------------------------------------------------------------------------
|
|
1342
|
-
void dpiSodaDb__free(dpiSodaDb *db, dpiError *error);
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
//-----------------------------------------------------------------------------
|
|
1346
|
-
// definition of internal dpiSodaDoc methods
|
|
1347
|
-
//-----------------------------------------------------------------------------
|
|
1348
|
-
int dpiSodaDoc__allocate(dpiSodaDb *db, void *handle, dpiSodaDoc **doc,
|
|
1349
|
-
dpiError *error);
|
|
1350
|
-
void dpiSodaDoc__free(dpiSodaDoc *doc, dpiError *error);
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
//-----------------------------------------------------------------------------
|
|
1354
|
-
// definition of internal dpiSodaDocCursor methods
|
|
1355
|
-
//-----------------------------------------------------------------------------
|
|
1356
|
-
int dpiSodaDocCursor__allocate(dpiSodaColl *coll, void *handle,
|
|
1357
|
-
dpiSodaDocCursor **cursor, dpiError *error);
|
|
1358
|
-
void dpiSodaDocCursor__free(dpiSodaDocCursor *cursor, dpiError *error);
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
//-----------------------------------------------------------------------------
|
|
1362
|
-
// definition of internal dpiOci methods
|
|
1363
|
-
//-----------------------------------------------------------------------------
|
|
1364
|
-
int dpiOci__aqDeq(dpiConn *conn, const char *queueName, void *options,
|
|
1365
|
-
void *msgProps, void *payloadType, void **payload, void **payloadInd,
|
|
1366
|
-
void **msgId, dpiError *error);
|
|
1367
|
-
int dpiOci__aqEnq(dpiConn *conn, const char *queueName, void *options,
|
|
1368
|
-
void *msgProps, void *payloadType, void **payload, void **payloadInd,
|
|
1369
|
-
void **msgId, dpiError *error);
|
|
1370
|
-
int dpiOci__arrayDescriptorAlloc(void *envHandle, void **handle,
|
|
1371
|
-
uint32_t handleType, uint32_t arraySize, dpiError *error);
|
|
1372
|
-
int dpiOci__arrayDescriptorFree(void **handle, uint32_t handleType);
|
|
1373
|
-
int dpiOci__attrGet(const void *handle, uint32_t handleType, void *ptr,
|
|
1374
|
-
uint32_t *size, uint32_t attribute, const char *action,
|
|
1375
|
-
dpiError *error);
|
|
1376
|
-
int dpiOci__attrSet(void *handle, uint32_t handleType, void *ptr,
|
|
1377
|
-
uint32_t size, uint32_t attribute, const char *action,
|
|
1378
|
-
dpiError *error);
|
|
1379
|
-
int dpiOci__bindByName(dpiStmt *stmt, void **bindHandle, const char *name,
|
|
1380
|
-
int32_t nameLength, int dynamicBind, dpiVar *var, dpiError *error);
|
|
1381
|
-
int dpiOci__bindByName2(dpiStmt *stmt, void **bindHandle, const char *name,
|
|
1382
|
-
int32_t nameLength, int dynamicBind, dpiVar *var, dpiError *error);
|
|
1383
|
-
int dpiOci__bindByPos(dpiStmt *stmt, void **bindHandle, uint32_t pos,
|
|
1384
|
-
int dynamicBind, dpiVar *var, dpiError *error);
|
|
1385
|
-
int dpiOci__bindByPos2(dpiStmt *stmt, void **bindHandle, uint32_t pos,
|
|
1386
|
-
int dynamicBind, dpiVar *var, dpiError *error);
|
|
1387
|
-
int dpiOci__bindDynamic(dpiVar *var, void *bindHandle, dpiError *error);
|
|
1388
|
-
int dpiOci__bindObject(dpiVar *var, void *bindHandle, dpiError *error);
|
|
1389
|
-
int dpiOci__break(dpiConn *conn, dpiError *error);
|
|
1390
|
-
void dpiOci__clientVersion(dpiContext *context);
|
|
1391
|
-
int dpiOci__collAppend(dpiConn *conn, const void *elem, const void *elemInd,
|
|
1392
|
-
void *coll, dpiError *error);
|
|
1393
|
-
int dpiOci__collAssignElem(dpiConn *conn, int32_t index, const void *elem,
|
|
1394
|
-
const void *elemInd, void *coll, dpiError *error);
|
|
1395
|
-
int dpiOci__collGetElem(dpiConn *conn, void *coll, int32_t index, int *exists,
|
|
1396
|
-
void **elem, void **elemInd, dpiError *error);
|
|
1397
|
-
int dpiOci__collSize(dpiConn *conn, void *coll, int32_t *size,
|
|
1398
|
-
dpiError *error);
|
|
1399
|
-
int dpiOci__collTrim(dpiConn *conn, uint32_t numToTrim, void *coll,
|
|
1400
|
-
dpiError *error);
|
|
1401
|
-
int dpiOci__contextGetValue(dpiConn *conn, const char *key, uint32_t keyLength,
|
|
1402
|
-
void **value, int checkError, dpiError *error);
|
|
1403
|
-
int dpiOci__contextSetValue(dpiConn *conn, const char *key, uint32_t keyLength,
|
|
1404
|
-
void *value, int checkError, dpiError *error);
|
|
1405
|
-
int dpiOci__dateTimeConstruct(void *envHandle, void *handle, int16_t year,
|
|
1406
|
-
uint8_t month, uint8_t day, uint8_t hour, uint8_t minute,
|
|
1407
|
-
uint8_t second, uint32_t fsecond, const char *tz, size_t tzLength,
|
|
1408
|
-
dpiError *error);
|
|
1409
|
-
int dpiOci__dateTimeGetDate(void *envHandle, void *handle, int16_t *year,
|
|
1410
|
-
uint8_t *month, uint8_t *day, dpiError *error);
|
|
1411
|
-
int dpiOci__dateTimeGetTime(void *envHandle, void *handle, uint8_t *hour,
|
|
1412
|
-
uint8_t *minute, uint8_t *second, uint32_t *fsecond, dpiError *error);
|
|
1413
|
-
int dpiOci__dateTimeGetTimeZoneOffset(void *envHandle, void *handle,
|
|
1414
|
-
int8_t *tzHourOffset, int8_t *tzMinuteOffset, dpiError *error);
|
|
1415
|
-
int dpiOci__dateTimeIntervalAdd(void *envHandle, void *handle, void *interval,
|
|
1416
|
-
void *outHandle, dpiError *error);
|
|
1417
|
-
int dpiOci__dateTimeSubtract(void *envHandle, void *handle1, void *handle2,
|
|
1418
|
-
void *interval, dpiError *error);
|
|
1419
|
-
int dpiOci__dbShutdown(dpiConn *conn, uint32_t mode, dpiError *error);
|
|
1420
|
-
int dpiOci__dbStartup(dpiConn *conn, uint32_t mode, dpiError *error);
|
|
1421
|
-
int dpiOci__defineByPos(dpiStmt *stmt, void **defineHandle, uint32_t pos,
|
|
1422
|
-
dpiVar *var, dpiError *error);
|
|
1423
|
-
int dpiOci__defineByPos2(dpiStmt *stmt, void **defineHandle, uint32_t pos,
|
|
1424
|
-
dpiVar *var, dpiError *error);
|
|
1425
|
-
int dpiOci__defineDynamic(dpiVar *var, void *defineHandle, dpiError *error);
|
|
1426
|
-
int dpiOci__defineObject(dpiVar *var, void *defineHandle, dpiError *error);
|
|
1427
|
-
int dpiOci__describeAny(dpiConn *conn, void *obj, uint32_t objLength,
|
|
1428
|
-
uint8_t objType, void *describeHandle, dpiError *error);
|
|
1429
|
-
int dpiOci__descriptorAlloc(void *envHandle, void **handle,
|
|
1430
|
-
const uint32_t handleType, const char *action, dpiError *error);
|
|
1431
|
-
int dpiOci__descriptorFree(void *handle, uint32_t handleType);
|
|
1432
|
-
int dpiOci__envNlsCreate(void **envHandle, uint32_t mode, uint16_t charsetId,
|
|
1433
|
-
uint16_t ncharsetId, dpiError *error);
|
|
1434
|
-
int dpiOci__errorGet(void *handle, uint32_t handleType, uint16_t charsetId,
|
|
1435
|
-
const char *action, dpiError *error);
|
|
1436
|
-
int dpiOci__handleAlloc(void *envHandle, void **handle, uint32_t handleType,
|
|
1437
|
-
const char *action, dpiError *error);
|
|
1438
|
-
int dpiOci__handleFree(void *handle, uint32_t handleType);
|
|
1439
|
-
int dpiOci__intervalGetDaySecond(void *envHandle, int32_t *day, int32_t *hour,
|
|
1440
|
-
int32_t *minute, int32_t *second, int32_t *fsecond,
|
|
1441
|
-
const void *interval, dpiError *error);
|
|
1442
|
-
int dpiOci__intervalGetYearMonth(void *envHandle, int32_t *year,
|
|
1443
|
-
int32_t *month, const void *interval, dpiError *error);
|
|
1444
|
-
int dpiOci__intervalSetDaySecond(void *envHandle, int32_t day, int32_t hour,
|
|
1445
|
-
int32_t minute, int32_t second, int32_t fsecond, void *interval,
|
|
1446
|
-
dpiError *error);
|
|
1447
|
-
int dpiOci__intervalSetYearMonth(void *envHandle, int32_t year, int32_t month,
|
|
1448
|
-
void *interval, dpiError *error);
|
|
1449
|
-
int dpiOci__lobClose(dpiLob *lob, dpiError *error);
|
|
1450
|
-
int dpiOci__lobCreateTemporary(dpiLob *lob, dpiError *error);
|
|
1451
|
-
int dpiOci__lobFileExists(dpiLob *lob, int *exists, dpiError *error);
|
|
1452
|
-
int dpiOci__lobFileGetName(dpiLob *lob, char *dirAlias,
|
|
1453
|
-
uint16_t *dirAliasLength, char *name, uint16_t *nameLength,
|
|
1454
|
-
dpiError *error);
|
|
1455
|
-
int dpiOci__lobFileSetName(dpiLob *lob, const char *dirAlias,
|
|
1456
|
-
uint16_t dirAliasLength, const char *name, uint16_t nameLength,
|
|
1457
|
-
dpiError *error);
|
|
1458
|
-
int dpiOci__lobFreeTemporary(dpiConn *conn, void *lobLocator, int checkError,
|
|
1459
|
-
dpiError *error);
|
|
1460
|
-
int dpiOci__lobGetChunkSize(dpiLob *lob, uint32_t *size, dpiError *error);
|
|
1461
|
-
int dpiOci__lobGetLength2(dpiLob *lob, uint64_t *size, dpiError *error);
|
|
1462
|
-
int dpiOci__lobIsOpen(dpiLob *lob, int *isOpen, dpiError *error);
|
|
1463
|
-
int dpiOci__lobIsTemporary(dpiLob *lob, int *isTemporary, int checkError,
|
|
1464
|
-
dpiError *error);
|
|
1465
|
-
int dpiOci__lobLocatorAssign(dpiLob *lob, void **copiedHandle,
|
|
1466
|
-
dpiError *error);
|
|
1467
|
-
int dpiOci__lobOpen(dpiLob *lob, dpiError *error);
|
|
1468
|
-
int dpiOci__lobRead2(dpiLob *lob, uint64_t offset, uint64_t *amountInBytes,
|
|
1469
|
-
uint64_t *amountInChars, char *buffer, uint64_t bufferLength,
|
|
1470
|
-
dpiError *error);
|
|
1471
|
-
int dpiOci__lobTrim2(dpiLob *lob, uint64_t newLength, dpiError *error);
|
|
1472
|
-
int dpiOci__lobWrite2(dpiLob *lob, uint64_t offset, const char *value,
|
|
1473
|
-
uint64_t valueLength, dpiError *error);
|
|
1474
|
-
int dpiOci__memoryAlloc(dpiConn *conn, void **ptr, uint32_t size,
|
|
1475
|
-
int checkError, dpiError *error);
|
|
1476
|
-
int dpiOci__memoryFree(dpiConn *conn, void *ptr, dpiError *error);
|
|
1477
|
-
int dpiOci__nlsCharSetConvert(void *envHandle, uint16_t destCharsetId,
|
|
1478
|
-
char *dest, size_t destLength, uint16_t sourceCharsetId,
|
|
1479
|
-
const char *source, size_t sourceLength, size_t *resultSize,
|
|
1480
|
-
dpiError *error);
|
|
1481
|
-
int dpiOci__nlsCharSetIdToName(void *envHandle, char *buf, size_t bufLength,
|
|
1482
|
-
uint16_t charsetId, dpiError *error);
|
|
1483
|
-
int dpiOci__nlsCharSetNameToId(void *envHandle, const char *name,
|
|
1484
|
-
uint16_t *charsetId, dpiError *error);
|
|
1485
|
-
int dpiOci__nlsEnvironmentVariableGet(uint16_t item, void *value,
|
|
1486
|
-
dpiError *error);
|
|
1487
|
-
int dpiOci__nlsNameMap(void *envHandle, char *buf, size_t bufLength,
|
|
1488
|
-
const char *source, uint32_t flag, dpiError *error);
|
|
1489
|
-
int dpiOci__nlsNumericInfoGet(void *envHandle, int32_t *value, uint16_t item,
|
|
1490
|
-
dpiError *error);
|
|
1491
|
-
int dpiOci__numberFromInt(const void *value, unsigned int valueLength,
|
|
1492
|
-
unsigned int flags, void *number, dpiError *error);
|
|
1493
|
-
int dpiOci__numberFromReal(const double value, void *number, dpiError *error);
|
|
1494
|
-
int dpiOci__numberToInt(void *number, void *value, unsigned int valueLength,
|
|
1495
|
-
unsigned int flags, dpiError *error);
|
|
1496
|
-
int dpiOci__numberToReal(double *value, void *number, dpiError *error);
|
|
1497
|
-
int dpiOci__objectCopy(dpiObject *obj, void *sourceInstance,
|
|
1498
|
-
void *sourceIndicator, dpiError *error);
|
|
1499
|
-
int dpiOci__objectFree(dpiObject *obj, int checkError, dpiError *error);
|
|
1500
|
-
int dpiOci__objectGetAttr(dpiObject *obj, dpiObjectAttr *attr,
|
|
1501
|
-
int16_t *scalarValueIndicator, void **valueIndicator, void **value,
|
|
1502
|
-
void **tdo, dpiError *error);
|
|
1503
|
-
int dpiOci__objectGetInd(dpiObject *obj, dpiError *error);
|
|
1504
|
-
int dpiOci__objectNew(dpiObject *obj, dpiError *error);
|
|
1505
|
-
int dpiOci__objectPin(void *envHandle, void *objRef, void **obj,
|
|
1506
|
-
dpiError *error);
|
|
1507
|
-
int dpiOci__objectSetAttr(dpiObject *obj, dpiObjectAttr *attr,
|
|
1508
|
-
int16_t scalarValueIndicator, void *valueIndicator, const void *value,
|
|
1509
|
-
dpiError *error);
|
|
1510
|
-
int dpiOci__paramGet(const void *handle, uint32_t handleType, void **parameter,
|
|
1511
|
-
uint32_t pos, const char *action, dpiError *error);
|
|
1512
|
-
int dpiOci__passwordChange(dpiConn *conn, const char *userName,
|
|
1513
|
-
uint32_t userNameLength, const char *oldPassword,
|
|
1514
|
-
uint32_t oldPasswordLength, const char *newPassword,
|
|
1515
|
-
uint32_t newPasswordLength, uint32_t mode, dpiError *error);
|
|
1516
|
-
int dpiOci__ping(dpiConn *conn, dpiError *error);
|
|
1517
|
-
int dpiOci__rawAssignBytes(void *envHandle, const char *value,
|
|
1518
|
-
uint32_t valueLength, void **handle, dpiError *error);
|
|
1519
|
-
int dpiOci__rawPtr(void *envHandle, void *handle, void **ptr);
|
|
1520
|
-
int dpiOci__rawResize(void *envHandle, void **handle, uint32_t newSize,
|
|
1521
|
-
dpiError *error);
|
|
1522
|
-
int dpiOci__rawSize(void *envHandle, void *handle, uint32_t *size);
|
|
1523
|
-
int dpiOci__rowidToChar(dpiRowid *rowid, char *buffer, uint16_t *bufferSize,
|
|
1524
|
-
dpiError *error);
|
|
1525
|
-
int dpiOci__serverAttach(dpiConn *conn, const char *connectString,
|
|
1526
|
-
uint32_t connectStringLength, dpiError *error);
|
|
1527
|
-
int dpiOci__serverDetach(dpiConn *conn, int checkError, dpiError *error);
|
|
1528
|
-
int dpiOci__serverRelease(dpiConn *conn, char *buffer, uint32_t bufferSize,
|
|
1529
|
-
uint32_t *version, dpiError *error);
|
|
1530
|
-
int dpiOci__sessionBegin(dpiConn *conn, uint32_t credentialType,
|
|
1531
|
-
uint32_t mode, dpiError *error);
|
|
1532
|
-
int dpiOci__sessionEnd(dpiConn *conn, int checkError, dpiError *error);
|
|
1533
|
-
int dpiOci__sessionGet(void *envHandle, void **handle, void *authInfo,
|
|
1534
|
-
const char *connectString, uint32_t connectStringLength,
|
|
1535
|
-
const char *tag, uint32_t tagLength, const char **outTag,
|
|
1536
|
-
uint32_t *outTagLength, int *found, uint32_t mode, dpiError *error);
|
|
1537
|
-
int dpiOci__sessionPoolCreate(dpiPool *pool, const char *connectString,
|
|
1538
|
-
uint32_t connectStringLength, uint32_t minSessions,
|
|
1539
|
-
uint32_t maxSessions, uint32_t sessionIncrement, const char *userName,
|
|
1540
|
-
uint32_t userNameLength, const char *password, uint32_t passwordLength,
|
|
1541
|
-
uint32_t mode, dpiError *error);
|
|
1542
|
-
int dpiOci__sessionPoolDestroy(dpiPool *pool, uint32_t mode, int checkError,
|
|
1543
|
-
dpiError *error);
|
|
1544
|
-
int dpiOci__sessionRelease(dpiConn *conn, const char *tag, uint32_t tagLength,
|
|
1545
|
-
uint32_t mode, int checkError, dpiError *error);
|
|
1546
|
-
int dpiOci__shardingKeyColumnAdd(void *shardingKey, void *col, uint32_t colLen,
|
|
1547
|
-
uint16_t colType, dpiError *error);
|
|
1548
|
-
int dpiOci__sodaBulkInsert(dpiSodaColl *coll, void **documents,
|
|
1549
|
-
uint32_t numDocuments, void *outputOptions, uint32_t mode,
|
|
1550
|
-
dpiError *error);
|
|
1551
|
-
int dpiOci__sodaBulkInsertAndGet(dpiSodaColl *coll, void **documents,
|
|
1552
|
-
uint32_t *numDocuments, void *outputOptions, uint32_t mode,
|
|
1553
|
-
dpiError *error);
|
|
1554
|
-
int dpiOci__sodaCollCreateWithMetadata(dpiSodaDb *db, const char *name,
|
|
1555
|
-
uint32_t nameLength, const char *metadata, uint32_t metadataLength,
|
|
1556
|
-
uint32_t mode, void **handle, dpiError *error);
|
|
1557
|
-
int dpiOci__sodaCollDrop(dpiSodaColl *coll, int *isDropped, uint32_t mode,
|
|
1558
|
-
dpiError *error);
|
|
1559
|
-
int dpiOci__sodaCollGetNext(dpiConn *conn, void *cursorHandle,
|
|
1560
|
-
void **collectionHandle, uint32_t mode, dpiError *error);
|
|
1561
|
-
int dpiOci__sodaCollList(dpiSodaDb *db, const char *startingName,
|
|
1562
|
-
uint32_t startingNameLength, void **handle, uint32_t mode,
|
|
1563
|
-
dpiError *error);
|
|
1564
|
-
int dpiOci__sodaCollOpen(dpiSodaDb *db, const char *name, uint32_t nameLength,
|
|
1565
|
-
uint32_t mode, void **handle, dpiError *error);
|
|
1566
|
-
int dpiOci__sodaDataGuideGet(dpiSodaColl *coll, void **handle, uint32_t mode,
|
|
1567
|
-
dpiError *error);
|
|
1568
|
-
int dpiOci__sodaDocCount(dpiSodaColl *coll, void *options, uint32_t mode,
|
|
1569
|
-
uint64_t *count, dpiError *error);
|
|
1570
|
-
int dpiOci__sodaDocGetNext(dpiSodaDocCursor *cursor, void **handle,
|
|
1571
|
-
uint32_t mode, dpiError *error);
|
|
1572
|
-
int dpiOci__sodaFind(dpiSodaColl *coll, const void *options, uint32_t flags,
|
|
1573
|
-
uint32_t mode, void **handle, dpiError *error);
|
|
1574
|
-
int dpiOci__sodaFindOne(dpiSodaColl *coll, const void *options, uint32_t flags,
|
|
1575
|
-
uint32_t mode, void **handle, dpiError *error);
|
|
1576
|
-
int dpiOci__sodaIndexCreate(dpiSodaColl *coll, const char *indexSpec,
|
|
1577
|
-
uint32_t indexSpecLength, uint32_t mode, dpiError *error);
|
|
1578
|
-
int dpiOci__sodaIndexDrop(dpiSodaColl *coll, const char *name,
|
|
1579
|
-
uint32_t nameLength, uint32_t mode, int *isDropped, dpiError *error);
|
|
1580
|
-
int dpiOci__sodaInsert(dpiSodaColl *coll, void *handle, uint32_t mode,
|
|
1581
|
-
dpiError *error);
|
|
1582
|
-
int dpiOci__sodaInsertAndGet(dpiSodaColl *coll, void **handle, uint32_t mode,
|
|
1583
|
-
dpiError *error);
|
|
1584
|
-
int dpiOci__sodaOperKeysSet(const dpiSodaOperOptions *options, void *handle,
|
|
1585
|
-
dpiError *error);
|
|
1586
|
-
int dpiOci__sodaRemove(dpiSodaColl *coll, void *options, uint32_t mode,
|
|
1587
|
-
uint64_t *count, dpiError *error);
|
|
1588
|
-
int dpiOci__sodaReplOne(dpiSodaColl *coll, const void *options, void *handle,
|
|
1589
|
-
uint32_t mode, int *isReplaced, dpiError *error);
|
|
1590
|
-
int dpiOci__sodaReplOneAndGet(dpiSodaColl *coll, const void *options,
|
|
1591
|
-
void **handle, uint32_t mode, int *isReplaced, dpiError *error);
|
|
1592
|
-
int dpiOci__sodaSave(dpiSodaColl *coll, void *handle, uint32_t mode,
|
|
1593
|
-
dpiError *error);
|
|
1594
|
-
int dpiOci__sodaSaveAndGet(dpiSodaColl *coll, void **handle, uint32_t mode,
|
|
1595
|
-
dpiError *error);
|
|
1596
|
-
int dpiOci__stmtExecute(dpiStmt *stmt, uint32_t numIters, uint32_t mode,
|
|
1597
|
-
dpiError *error);
|
|
1598
|
-
int dpiOci__stmtFetch2(dpiStmt *stmt, uint32_t numRows, uint16_t fetchMode,
|
|
1599
|
-
int32_t offset, dpiError *error);
|
|
1600
|
-
int dpiOci__stmtGetBindInfo(dpiStmt *stmt, uint32_t size, uint32_t startLoc,
|
|
1601
|
-
int32_t *numFound, char *names[], uint8_t nameLengths[],
|
|
1602
|
-
char *indNames[], uint8_t indNameLengths[], uint8_t isDuplicate[],
|
|
1603
|
-
void *bindHandles[], dpiError *error);
|
|
1604
|
-
int dpiOci__stmtGetNextResult(dpiStmt *stmt, void **handle, dpiError *error);
|
|
1605
|
-
int dpiOci__stmtPrepare2(dpiStmt *stmt, const char *sql, uint32_t sqlLength,
|
|
1606
|
-
const char *tag, uint32_t tagLength, dpiError *error);
|
|
1607
|
-
int dpiOci__stmtRelease(dpiStmt *stmt, const char *tag, uint32_t tagLength,
|
|
1608
|
-
int checkError, dpiError *error);
|
|
1609
|
-
int dpiOci__stringAssignText(void *envHandle, const char *value,
|
|
1610
|
-
uint32_t valueLength, void **handle, dpiError *error);
|
|
1611
|
-
int dpiOci__stringPtr(void *envHandle, void *handle, char **ptr);
|
|
1612
|
-
int dpiOci__stringResize(void *envHandle, void **handle, uint32_t newSize,
|
|
1613
|
-
dpiError *error);
|
|
1614
|
-
int dpiOci__stringSize(void *envHandle, void *handle, uint32_t *size);
|
|
1615
|
-
int dpiOci__subscriptionRegister(dpiConn *conn, void **handle,
|
|
1616
|
-
dpiError *error);
|
|
1617
|
-
int dpiOci__subscriptionUnRegister(dpiConn *conn, dpiSubscr *subscr,
|
|
1618
|
-
dpiError *error);
|
|
1619
|
-
int dpiOci__tableDelete(dpiObject *obj, int32_t index, dpiError *error);
|
|
1620
|
-
int dpiOci__tableExists(dpiObject *obj, int32_t index, int *exists,
|
|
1621
|
-
dpiError *error);
|
|
1622
|
-
int dpiOci__tableFirst(dpiObject *obj, int32_t *index, dpiError *error);
|
|
1623
|
-
int dpiOci__tableLast(dpiObject *obj, int32_t *index, dpiError *error);
|
|
1624
|
-
int dpiOci__tableNext(dpiObject *obj, int32_t index, int32_t *nextIndex,
|
|
1625
|
-
int *exists, dpiError *error);
|
|
1626
|
-
int dpiOci__tablePrev(dpiObject *obj, int32_t index, int32_t *prevIndex,
|
|
1627
|
-
int *exists, dpiError *error);
|
|
1628
|
-
int dpiOci__tableSize(dpiObject *obj, int32_t *size, dpiError *error);
|
|
1629
|
-
int dpiOci__threadKeyDestroy(void *envHandle, void *errorHandle, void **key,
|
|
1630
|
-
dpiError *error);
|
|
1631
|
-
int dpiOci__threadKeyGet(void *envHandle, void *errorHandle, void *key,
|
|
1632
|
-
void **value, dpiError *error);
|
|
1633
|
-
int dpiOci__threadKeyInit(void *envHandle, void *errorHandle, void **key,
|
|
1634
|
-
void *destroyFunc, dpiError *error);
|
|
1635
|
-
int dpiOci__threadKeySet(void *envHandle, void *errorHandle, void *key,
|
|
1636
|
-
void *value, dpiError *error);
|
|
1637
|
-
int dpiOci__transCommit(dpiConn *conn, uint32_t flags, dpiError *error);
|
|
1638
|
-
int dpiOci__transPrepare(dpiConn *conn, int *commitNeeded, dpiError *error);
|
|
1639
|
-
int dpiOci__transRollback(dpiConn *conn, int checkError, dpiError *error);
|
|
1640
|
-
int dpiOci__transStart(dpiConn *conn, dpiError *error);
|
|
1641
|
-
int dpiOci__typeByFullName(dpiConn *conn, const char *name,
|
|
1642
|
-
uint32_t nameLength, void **tdo, dpiError *error);
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
//-----------------------------------------------------------------------------
|
|
1646
|
-
// definition of internal dpiMsgProps methods
|
|
1647
|
-
//-----------------------------------------------------------------------------
|
|
1648
|
-
int dpiMsgProps__create(dpiMsgProps *props, dpiConn *conn, dpiError *error);
|
|
1649
|
-
int dpiMsgProps__extractMsgId(dpiMsgProps *props, void *ociRaw,
|
|
1650
|
-
const char **msgId, uint32_t *msgIdLength, dpiError *error);
|
|
1651
|
-
void dpiMsgProps__free(dpiMsgProps *props, dpiError *error);
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
//-----------------------------------------------------------------------------
|
|
1655
|
-
// definition of internal dpiHandlePool methods
|
|
1656
|
-
//-----------------------------------------------------------------------------
|
|
1657
|
-
int dpiHandlePool__acquire(dpiHandlePool *pool, void **handle,
|
|
1658
|
-
dpiError *error);
|
|
1659
|
-
int dpiHandlePool__create(dpiHandlePool **pool, dpiError *error);
|
|
1660
|
-
void dpiHandlePool__free(dpiHandlePool *pool);
|
|
1661
|
-
void dpiHandlePool__release(dpiHandlePool *pool, void *handle,
|
|
1662
|
-
dpiError *error);
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
//-----------------------------------------------------------------------------
|
|
1666
|
-
// definition of internal dpiHandleList methods
|
|
1667
|
-
//-----------------------------------------------------------------------------
|
|
1668
|
-
int dpiHandleList__addHandle(dpiHandleList *list, void *handle,
|
|
1669
|
-
uint32_t *slotNum, dpiError *error);
|
|
1670
|
-
int dpiHandleList__create(dpiHandleList **list, dpiError *error);
|
|
1671
|
-
void dpiHandleList__free(dpiHandleList *list);
|
|
1672
|
-
void dpiHandleList__removeHandle(dpiHandleList *list, uint32_t slotNum);
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
//-----------------------------------------------------------------------------
|
|
1676
|
-
// definition of internal dpiUtils methods
|
|
1677
|
-
//-----------------------------------------------------------------------------
|
|
1678
|
-
int dpiUtils__allocateMemory(size_t numMembers, size_t memberSize,
|
|
1679
|
-
int clearMemory, const char *action, void **ptr, dpiError *error);
|
|
1680
|
-
int dpiUtils__checkClientVersion(dpiVersionInfo *versionInfo,
|
|
1681
|
-
int minVersionNum, int minReleaseNum, dpiError *error);
|
|
1682
|
-
int dpiUtils__checkDatabaseVersion(dpiConn *conn, int minVersionNum,
|
|
1683
|
-
int minReleaseNum, dpiError *error);
|
|
1684
|
-
void dpiUtils__clearMemory(void *ptr, size_t length);
|
|
1685
|
-
void dpiUtils__freeMemory(void *ptr);
|
|
1686
|
-
int dpiUtils__getAttrStringWithDup(const char *action, const void *ociHandle,
|
|
1687
|
-
uint32_t ociHandleType, uint32_t ociAttribute, const char **value,
|
|
1688
|
-
uint32_t *valueLength, dpiError *error);
|
|
1689
|
-
int dpiUtils__parseNumberString(const char *value, uint32_t valueLength,
|
|
1690
|
-
uint16_t charsetId, int *isNegative, int16_t *decimalPointIndex,
|
|
1691
|
-
uint8_t *numDigits, uint8_t *digits, dpiError *error);
|
|
1692
|
-
int dpiUtils__parseOracleNumber(void *oracleValue, int *isNegative,
|
|
1693
|
-
int16_t *decimalPointIndex, uint8_t *numDigits, uint8_t *digits,
|
|
1694
|
-
dpiError *error);
|
|
1695
|
-
int dpiUtils__setAttributesFromCommonCreateParams(void *handle,
|
|
1696
|
-
uint32_t handleType, const dpiCommonCreateParams *params,
|
|
1697
|
-
dpiError *error);
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
//-----------------------------------------------------------------------------
|
|
1701
|
-
// definition of internal dpiDebug methods
|
|
1702
|
-
//-----------------------------------------------------------------------------
|
|
1703
|
-
void dpiDebug__initialize(void);
|
|
1704
|
-
void dpiDebug__print(const char *format, ...);
|
|
1705
|
-
|
|
1706
|
-
#endif
|
|
1707
|
-
|