00001
00035 #ifndef SQLDBC_C_H
00036 #define SQLDBC_C_H
00037
00044 #ifdef SQLDBC_FEATURE_TRACEOPTION_OFF
00045 #undef SQLDBC_FEATURE_TRACEOPTION
00046 #else
00047 #define SQLDBC_FEATURE_TRACEOPTION
00048 #endif
00049
00055 #ifdef SQLDBC_FEATURE_PROFILE_OFF
00056 #undef SQLDBC_FEATURE_PROFILE
00057 #else
00058 #define SQLDBC_FEATURE_PROFILE
00059 #endif
00060
00067 #ifdef SQLDBC_FEATURE_DECIMAL_OFF
00068 #undef SQLDBC_FEATURE_DECIMAL
00069 #else
00070 #ifndef SQLDBC_FEATURE_DECIMAL
00071 #define SQLDBC_FEATURE_DECIMAL
00072 #endif
00073 #endif
00074
00080 #ifdef SQLDBC_FEATURE_OMS_ASCII_OFF
00081 #undef SQLDBC_FEATURE_OMS_ASCII
00082 #else
00083 #ifndef SQLDBC_FEATURE_OMS_ASCII
00084 #define SQLDBC_FEATURE_OMS_ASCII
00085 #endif
00086 #endif
00087
00094 #ifdef SQLDBC_RESULTSET_ROWWISE_OFF
00095 #undef SQLDBC_FEATURE_RESULTSET_ROWWISE
00096 #else
00097 #define SQLDBC_FEATURE_RESULTSET_ROWWISE
00098 #endif
00099 #include "SQLDBC_Types.h"
00100
00101 #ifdef __cplusplus
00102 extern "C" {
00103 #endif
00104
00108 #define SQLDBC_CHeaderVersion "SQLDBC_C.H 7.6.0 BUILD 034-121-134-685"
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119 #ifndef BUILD_INTERFACE_RUNTIME
00120 typedef struct SQLDBC_IRuntime SQLDBC_IRuntime;
00121 #endif
00122
00123 #ifdef WIN32
00124 #define SQLDBC_DLLEXPORT __declspec(dllexport)
00125 #else
00126 #define SQLDBC_DLLEXPORT
00127 #endif
00128
00129 #ifndef BUILD_INTERFACE_RUNTIME
00130 typedef struct SQLDBC_Statement SQLDBC_Statement;
00131 #endif
00132
00136 #ifndef BUILD_INTERFACE_RUNTIME
00137 typedef struct SQLDBC_ErrorHndl SQLDBC_ErrorHndl;
00138 #endif
00139
00145 SQLDBC_DLLEXPORT
00146 SQLDBC_Int4 SQLDBC_ErrorHndl_getErrorCode(SQLDBC_ErrorHndl *hdl);
00147
00153 SQLDBC_DLLEXPORT
00154 char* SQLDBC_ErrorHndl_getSQLState(SQLDBC_ErrorHndl* hdl);
00155
00162 SQLDBC_DLLEXPORT
00163 char * SQLDBC_ErrorHndl_getErrorText(SQLDBC_ErrorHndl* hdl);
00164
00165
00174 #ifndef BUILD_INTERFACE_RUNTIME
00175 typedef struct SQLDBC_SQLWarning SQLDBC_SQLWarning;
00176 #endif
00177
00183 SQLDBC_DLLEXPORT
00184 SQLDBC_SQLWarning* SQLDBC_SQLWarning_getNextWarning(SQLDBC_SQLWarning* hdl);
00185
00191 SQLDBC_DLLEXPORT
00192 SQLDBC_SQLWarningCode SQLDBC_SQLWarning_getWarningCode(SQLDBC_SQLWarning* hdl);
00193
00194
00200 #ifndef BUILD_INTERFACE_RUNTIME
00201 typedef struct SQLDBC_LOB SQLDBC_LOB;
00202 #endif
00203
00204 SQLDBC_DLLEXPORT SQLDBC_LOB* SQLDBC_LOB_new_SQLDBC_LOB();
00205
00206 SQLDBC_DLLEXPORT void SQLDBC_LOB_delete_SQLDBC_LOB(SQLDBC_LOB *lob);
00220 SQLDBC_DLLEXPORT SQLDBC_Retcode SQLDBC_LOB_putData(SQLDBC_LOB* hdl, void *paramAddr, SQLDBC_Length *paramLengthIndicator);
00221
00227 SQLDBC_DLLEXPORT SQLDBC_Retcode SQLDBC_LOB_close(SQLDBC_LOB* hdl);
00228
00229
00268 SQLDBC_DLLEXPORT SQLDBC_Retcode SQLDBC_LOB_getData(SQLDBC_LOB *hdl,
00269 void *paramAddr,
00270 SQLDBC_Length *LengthIndicator,
00271 SQLDBC_Length Size,
00272 SQLDBC_Bool Terminate);
00273
00315
00316 SQLDBC_DLLEXPORT SQLDBC_Retcode SQLDBC_LOB_getDataByPos(SQLDBC_LOB* hdl,
00317 void *paramAddr,
00318 SQLDBC_Length *LengthIndicator,
00319 SQLDBC_Length Size,
00320 SQLDBC_Length position,
00321 SQLDBC_Bool Terminate);
00322
00332 SQLDBC_DLLEXPORT SQLDBC_Length SQLDBC_LOB_getLength(SQLDBC_LOB *hdl);
00333
00341 SQLDBC_DLLEXPORT SQLDBC_Length SQLDBC_LOB_getPosition(SQLDBC_LOB* hdl);
00342
00343
00355 SQLDBC_DLLEXPORT SQLDBC_Length SQLDBC_LOB_getPreferredDataSize(SQLDBC_LOB* hdl);
00356
00357
00362 #ifndef BUILD_INTERFACE_RUNTIME
00363 typedef struct SQLDBC_ParameterMetaData SQLDBC_ParameterMetaData;
00364 #endif
00365
00366 #ifndef __cplusplus
00367 typedef
00368 #endif
00369 enum ParameterNullBehavior {
00373 parameterNoNulls = 0,
00374
00378 parameterNullable = 1,
00379
00383 parameterNullableUnknown = 2
00384 }
00385 #ifndef __cplusplus
00386 ParameterNullBehavior
00387 #endif
00388 ;
00389
00390 #ifndef __cplusplus
00391 typedef
00392 #endif
00393 enum ParameterMode {
00394
00398 parameterModeUnknown = 0,
00399
00403 parameterModeIn = 1,
00404
00408 parameterModeInOut = 2,
00409
00413 parameterModeOut = 4
00414 }
00415 #ifndef __cplusplus
00416 ParameterMode
00417 #endif
00418 ;
00419
00428 SQLDBC_DLLEXPORT
00429 SQLDBC_Int2 SQLDBC_ParameterMetaData_getParameterCount(SQLDBC_ParameterMetaData* hdl);
00430
00450 SQLDBC_DLLEXPORT
00451 SQLDBC_Retcode SQLDBC_ParameterMetaData_getParameterName(SQLDBC_ParameterMetaData* hdl,
00452 SQLDBC_Int2 param,
00453 char *buffer,
00454 SQLDBC_StringEncodingType_Encoding encoding,
00455 SQLDBC_Length bufferSize,
00456 SQLDBC_Length *bufferLength);
00457
00466 SQLDBC_DLLEXPORT
00467 SQLDBC_SQLType SQLDBC_ParameterMetaData_getParameterType(SQLDBC_ParameterMetaData* hdl, SQLDBC_Int2 param);
00468
00481 SQLDBC_DLLEXPORT
00482 ParameterMode SQLDBC_ParameterMetaData_getParameterMode(SQLDBC_ParameterMetaData* hdl, SQLDBC_Int2 param);
00483
00496 SQLDBC_DLLEXPORT
00497 SQLDBC_Int4 SQLDBC_ParameterMetaData_getParameterLength(SQLDBC_ParameterMetaData* hdl, SQLDBC_Int2 param);
00498
00515 SQLDBC_DLLEXPORT
00516 SQLDBC_Int4 SQLDBC_ParameterMetaData_getPrecision(SQLDBC_ParameterMetaData* hdl, SQLDBC_Int2 param);
00517
00532 SQLDBC_DLLEXPORT
00533 SQLDBC_Int4 SQLDBC_ParameterMetaData_getScale(SQLDBC_ParameterMetaData* hdl, SQLDBC_Int2 param);
00534
00546 SQLDBC_DLLEXPORT
00547 SQLDBC_Int4 SQLDBC_ParameterMetaData_getPhysicalLength(SQLDBC_ParameterMetaData* hdl, SQLDBC_Int2 param);
00548
00562 SQLDBC_DLLEXPORT
00563 ParameterNullBehavior SQLDBC_ParameterMetaData_isNullable(SQLDBC_ParameterMetaData* hdl, SQLDBC_Int2 param);
00564
00565
00570 #ifndef BUILD_INTERFACE_RUNTIME
00571 typedef struct SQLDBC_ResultSetMetaData SQLDBC_ResultSetMetaData;
00572 #endif
00573 #ifndef __cplusplus
00574 typedef
00575 #endif
00576 enum ColumnNullBehavior {
00580 columnNoNulls = 0,
00581
00585 columnNullable = 1,
00586
00590 columnNullableUnknown = 2
00591 }
00592 #ifndef __cplusplus
00593 ColumnNullBehavior
00594 #endif
00595 ;
00603 SQLDBC_DLLEXPORT
00604 SQLDBC_Int2 SQLDBC_ResultSetMetaData_getColumnCount(SQLDBC_ResultSetMetaData* hdl);
00605
00627 SQLDBC_DLLEXPORT
00628 SQLDBC_Retcode SQLDBC_ResultSetMetaData_getColumnName(SQLDBC_ResultSetMetaData* hdl,
00629 SQLDBC_Int2 column,
00630 char *buffer,
00631 SQLDBC_StringEncodingType_Encoding encoding,
00632 SQLDBC_Length bufferSize,
00633 SQLDBC_Length *bufferLength);
00634
00635
00646 SQLDBC_DLLEXPORT
00647 SQLDBC_SQLType SQLDBC_ResultSetMetaData_getColumnType(SQLDBC_ResultSetMetaData* hdl, SQLDBC_Int2 column);
00648
00659 SQLDBC_DLLEXPORT
00660 SQLDBC_Int4 SQLDBC_ResultSetMetaData_getColumnLength(SQLDBC_ResultSetMetaData* hdl,SQLDBC_Int2 column);
00661
00676 SQLDBC_DLLEXPORT
00677 SQLDBC_Int4 SQLDBC_ResultSetMetaData_getPrecision(SQLDBC_ResultSetMetaData* hdl, SQLDBC_Int2 column);
00678
00693 SQLDBC_DLLEXPORT
00694 SQLDBC_Int4 SQLDBC_ResultSetMetaData_getScale(SQLDBC_ResultSetMetaData* hdl, SQLDBC_Int2 column);
00695
00707 SQLDBC_DLLEXPORT
00708 SQLDBC_Int4 SQLDBC_ResultSetMetaData_getPhysicalLength(SQLDBC_ResultSetMetaData* hdl, SQLDBC_Int2 column);
00709
00722 SQLDBC_DLLEXPORT
00723 ColumnNullBehavior SQLDBC_ResultSetMetaData_isNullable(SQLDBC_ResultSetMetaData* hdl, SQLDBC_Int2 column);
00724
00735 SQLDBC_DLLEXPORT
00736 SQLDBC_Bool SQLDBC_ResultSetMetaData_isWritable(SQLDBC_ResultSetMetaData* hdl, SQLDBC_Int2 column);
00737
00738
00750 #ifndef BUILD_INTERFACE_RUNTIME
00751 typedef struct SQLDBC_RowSet SQLDBC_RowSet;
00752 #endif
00753
00764
00765 SQLDBC_DLLEXPORT
00766 SQLDBC_ErrorHndl* SQLDBC_RowSet_getError(SQLDBC_RowSet* hdl);
00767
00772 SQLDBC_DLLEXPORT
00773 void SQLDBC_RowSet_clearError(SQLDBC_RowSet* hdl);
00774
00784
00785 SQLDBC_DLLEXPORT
00786 SQLDBC_SQLWarning* SQLDBC_RowSet_getWarning(SQLDBC_RowSet* hdl);
00787
00792 SQLDBC_DLLEXPORT
00793 void SQLDBC_RowSet_clearWarnings(SQLDBC_RowSet* hdl);
00794
00795
00807 SQLDBC_DLLEXPORT
00808 SQLDBC_Retcode SQLDBC_RowSet_setPos(SQLDBC_RowSet* hdl, SQLDBC_UInt4 pos);
00809
00818 SQLDBC_DLLEXPORT
00819 SQLDBC_Retcode SQLDBC_RowSet_fetch(SQLDBC_RowSet* hdl);
00820
00829 SQLDBC_DLLEXPORT
00830 SQLDBC_Int4 SQLDBC_RowSet_getRowsAffected(SQLDBC_RowSet* hdl);
00831
00845 SQLDBC_DLLEXPORT
00846 SQLDBC_Int4 * SQLDBC_RowSet_getRowStatus(SQLDBC_RowSet* hdl);
00847
00901 SQLDBC_DLLEXPORT
00902 SQLDBC_Retcode SQLDBC_RowSet_getObject(SQLDBC_RowSet* hdl,
00903 SQLDBC_Int4 Index,
00904 SQLDBC_HostType Type,
00905 void *paramAddr,
00906 SQLDBC_Length *LengthIndicator,
00907 SQLDBC_Length Size,
00908 SQLDBC_Bool Terminate);
00909
00966
00967 SQLDBC_DLLEXPORT
00968 SQLDBC_Retcode SQLDBC_RowSet_getObjectByPos(SQLDBC_RowSet* hdl,
00969 SQLDBC_Int4 Index,
00970 SQLDBC_HostType Type,
00971 void *paramAddr,
00972 SQLDBC_Length *LengthIndicator,
00973 SQLDBC_Length Size,
00974 SQLDBC_Length StartPos,
00975 SQLDBC_Bool Terminate);
00976
00977
00993 #ifndef BUILD_INTERFACE_RUNTIME
00994 typedef struct SQLDBC_UpdatableRowSet SQLDBC_UpdatableRowSet;
00995 #endif
00996
01007
01008 SQLDBC_DLLEXPORT
01009 SQLDBC_ErrorHndl* SQLDBC_UpdatableRowSet_getError(SQLDBC_UpdatableRowSet* hdl);
01010
01015 SQLDBC_DLLEXPORT
01016 void SQLDBC_UpdatableRowSet_clearError(SQLDBC_UpdatableRowSet* hdl);
01017
01027
01028 SQLDBC_DLLEXPORT
01029 SQLDBC_SQLWarning* SQLDBC_UpdatableRowSet_getWarning(SQLDBC_UpdatableRowSet* hdl);
01030
01035 SQLDBC_DLLEXPORT
01036 void SQLDBC_UpdatableRowSet_clearWarnings(SQLDBC_UpdatableRowSet* hdl);
01037
01038
01039
01051 SQLDBC_DLLEXPORT
01052 SQLDBC_Retcode SQLDBC_UpdatableRowSet_setPos(SQLDBC_UpdatableRowSet* hdl, SQLDBC_UInt4 pos);
01053
01062 SQLDBC_DLLEXPORT
01063 SQLDBC_Retcode SQLDBC_UpdatableRowSet_fetch(SQLDBC_UpdatableRowSet* hdl);
01064
01073 SQLDBC_DLLEXPORT
01074 SQLDBC_Int4 SQLDBC_UpdatableRowSet_getRowsAffected(SQLDBC_UpdatableRowSet* hdl);
01075
01089 SQLDBC_DLLEXPORT
01090 SQLDBC_Int4 * SQLDBC_UpdatableRowSet_getRowStatus(SQLDBC_UpdatableRowSet* hdl);
01091
01145 SQLDBC_DLLEXPORT
01146 SQLDBC_Retcode SQLDBC_UpdatableRowSet_getObject(SQLDBC_UpdatableRowSet* hdl,
01147 SQLDBC_Int4 Index,
01148 SQLDBC_HostType Type,
01149 void *paramAddr,
01150 SQLDBC_Length *LengthIndicator,
01151 SQLDBC_Length Size,
01152 SQLDBC_Bool Terminate);
01153
01210
01211 SQLDBC_DLLEXPORT
01212 SQLDBC_Retcode SQLDBC_UpdatableRowSet_getObjectByPos(SQLDBC_UpdatableRowSet* hdl,
01213 SQLDBC_Int4 Index,
01214 SQLDBC_HostType Type,
01215 void *paramAddr,
01216 SQLDBC_Length *LengthIndicator,
01217 SQLDBC_Length Size,
01218 SQLDBC_Length StartPos,
01219 SQLDBC_Bool Terminate);
01220
01230 SQLDBC_DLLEXPORT
01231 SQLDBC_Retcode SQLDBC_UpdatableRowSet_insertAllRows(SQLDBC_UpdatableRowSet* hdl);
01232
01240 SQLDBC_DLLEXPORT
01241 SQLDBC_Retcode SQLDBC_UpdatableRowSet_insertOneRow(SQLDBC_UpdatableRowSet* hdl);
01242
01251 SQLDBC_DLLEXPORT
01252 SQLDBC_Retcode SQLDBC_UpdatableRowSet_insertRow(SQLDBC_UpdatableRowSet* hdl, SQLDBC_UInt4 position);
01253
01254
01265 SQLDBC_DLLEXPORT
01266 SQLDBC_Retcode SQLDBC_UpdatableRowSet_updateRow(SQLDBC_UpdatableRowSet* hdl, SQLDBC_UInt4 position);
01267
01277 SQLDBC_DLLEXPORT
01278 SQLDBC_Retcode SQLDBC_UpdatableRowSet_deleteRow(SQLDBC_UpdatableRowSet* hdl, SQLDBC_UInt4 position);
01279
01280
01303 SQLDBC_DLLEXPORT
01304 SQLDBC_Retcode SQLDBC_UpdatableRowSet_nextParameterByIndex(SQLDBC_UpdatableRowSet* hdl, SQLDBC_Int2* paramIndex, void** paramAddr);
01305
01306
01321 SQLDBC_DLLEXPORT
01322 SQLDBC_Retcode SQLDBC_UpdatableRowSet_putData(SQLDBC_UpdatableRowSet* hdl, void *paramAddr, SQLDBC_Length *paramLengthIndicator);
01323
01324
01325
01409 #ifndef BUILD_INTERFACE_RUNTIME
01410 typedef struct SQLDBC_ResultSet SQLDBC_ResultSet;
01411 #endif
01412
01423
01424 SQLDBC_DLLEXPORT
01425 SQLDBC_ErrorHndl* SQLDBC_ResultSet_getError(SQLDBC_ResultSet* hdl);
01426
01431 SQLDBC_DLLEXPORT
01432 void SQLDBC_ResultSet_clearError(SQLDBC_ResultSet* hdl);
01433
01443
01444 SQLDBC_DLLEXPORT
01445 SQLDBC_SQLWarning* SQLDBC_ResultSet_getWarning(SQLDBC_ResultSet* hdl);
01446
01451 SQLDBC_DLLEXPORT
01452 void SQLDBC_ResultSet_clearWarnings(SQLDBC_ResultSet* hdl);
01453
01454
01455
01466 SQLDBC_DLLEXPORT
01467 SQLDBC_ResultSetMetaData* SQLDBC_ResultSet_getResultSetMetaData(SQLDBC_ResultSet* hdl);
01468
01475 SQLDBC_DLLEXPORT
01476 SQLDBC_Int4 SQLDBC_ResultSet_getResultCount (SQLDBC_ResultSet* hdl);
01477
01518 SQLDBC_DLLEXPORT
01519 SQLDBC_Retcode SQLDBC_ResultSet_bindColumn (SQLDBC_ResultSet* hdl,
01520 SQLDBC_UInt4 Index,
01521 SQLDBC_HostType Type,
01522 void *paramAddr,
01523 SQLDBC_Length *LengthIndicator,
01524 SQLDBC_Length Size,
01525 SQLDBC_Bool Terminate);
01526
01570
01571 SQLDBC_DLLEXPORT
01572 SQLDBC_Retcode SQLDBC_ResultSet_bindColumnByPos (SQLDBC_ResultSet* hdl,
01573 SQLDBC_UInt4 Index,
01574 SQLDBC_HostType Type,
01575 void *paramAddr,
01576 SQLDBC_Length *LengthIndicator,
01577 SQLDBC_Length *PositionIndicator,
01578 SQLDBC_Length Size,
01579 SQLDBC_Bool Terminate);
01580
01581
01601 SQLDBC_DLLEXPORT
01602 SQLDBC_Retcode SQLDBC_ResultSet_setBindingType(SQLDBC_ResultSet* hdl, SQLDBC_size_t size);
01603
01612 SQLDBC_DLLEXPORT
01613 SQLDBC_Retcode SQLDBC_ResultSet_clearColumns(SQLDBC_ResultSet* hdl);
01614
01626 SQLDBC_DLLEXPORT
01627 void SQLDBC_ResultSet_setFetchSize(SQLDBC_ResultSet* hdl, SQLDBC_Int2 fetchsize);
01628
01636 SQLDBC_DLLEXPORT
01637 void SQLDBC_ResultSet_setRowSetSize (SQLDBC_ResultSet *hdl, SQLDBC_UInt4 rowsetsize);
01638
01646 SQLDBC_DLLEXPORT
01647 SQLDBC_UInt4 SQLDBC_ResultSet_getRowSetSize (SQLDBC_ResultSet* hdl);
01648
01656 SQLDBC_DLLEXPORT
01657 SQLDBC_RowSet * SQLDBC_ResultSet_getRowSet (SQLDBC_ResultSet* hdl);
01658
01667 SQLDBC_DLLEXPORT
01668 SQLDBC_UpdatableRowSet * SQLDBC_ResultSet_getUpdatableRowSet (SQLDBC_ResultSet* hdl);
01669
01677 SQLDBC_DLLEXPORT
01678 SQLDBC_Statement * SQLDBC_ResultSet_getStatement(SQLDBC_ResultSet* hdl);
01679
01686 SQLDBC_DLLEXPORT
01687 SQLDBC_Bool * SQLDBC_ResultSet_isUpdatable(SQLDBC_ResultSet* hdl);
01688
01701 SQLDBC_DLLEXPORT
01702 SQLDBC_Retcode SQLDBC_ResultSet_first(SQLDBC_ResultSet* hdl);
01703
01721 SQLDBC_DLLEXPORT
01722 SQLDBC_Retcode SQLDBC_ResultSet_next(SQLDBC_ResultSet* hdl);
01723
01735 SQLDBC_DLLEXPORT
01736 SQLDBC_Retcode SQLDBC_ResultSet_previous(SQLDBC_ResultSet* hdl);
01737
01749 SQLDBC_DLLEXPORT
01750 SQLDBC_Retcode SQLDBC_ResultSet_last(SQLDBC_ResultSet* hdl);
01751
01782 SQLDBC_DLLEXPORT
01783 SQLDBC_Retcode SQLDBC_ResultSet_absolute (SQLDBC_ResultSet* hdl, int row);
01784
01808 SQLDBC_DLLEXPORT
01809 SQLDBC_Retcode SQLDBC_ResultSet_relative(SQLDBC_ResultSet* hdl, int relativePos);
01810
01816 SQLDBC_DLLEXPORT
01817 void SQLDBC_ResultSet_close(SQLDBC_ResultSet* hdl);
01818
01826 SQLDBC_DLLEXPORT
01827 SQLDBC_UInt4 SQLDBC_ResultSet_getRowNumber(SQLDBC_ResultSet* hdl);
01828
01882 SQLDBC_DLLEXPORT
01883 SQLDBC_Retcode SQLDBC_ResultSet_getObject(SQLDBC_ResultSet* hdl,
01884 SQLDBC_Int4 Index,
01885 SQLDBC_HostType Type,
01886 void *paramAddr,
01887 SQLDBC_Length *LengthIndicator,
01888 SQLDBC_Length Size,
01889 SQLDBC_Bool Terminate);
01890
01891
01948
01949 SQLDBC_DLLEXPORT
01950 SQLDBC_Retcode SQLDBC_ResultSet_getObjectByPos(SQLDBC_ResultSet* hdl,
01951 SQLDBC_Int4 Index,
01952 SQLDBC_HostType Type,
01953 void *paramAddr,
01954 SQLDBC_Length *LengthIndicator,
01955 SQLDBC_Length Size,
01956 SQLDBC_Length StartPos,
01957 SQLDBC_Bool Terminate);
01958
01959
02045
02046 SQLDBC_DLLEXPORT
02047 SQLDBC_ErrorHndl* SQLDBC_Statement_getError(SQLDBC_Statement* hdl);
02048
02053 SQLDBC_DLLEXPORT
02054 void SQLDBC_Statement_clearError(SQLDBC_Statement* hdl);
02055
02065
02066 SQLDBC_DLLEXPORT
02067 SQLDBC_SQLWarning* SQLDBC_Statement_getWarning(SQLDBC_Statement* hdl);
02068
02073 SQLDBC_DLLEXPORT
02074 void SQLDBC_Statement_clearWarnings(SQLDBC_Statement* hdl);
02075
02093 SQLDBC_DLLEXPORT
02094 SQLDBC_Retcode SQLDBC_Statement_execute(SQLDBC_Statement* hdl,
02095 char *sql,
02096 SQLDBC_Length sqlLength,
02097 SQLDBC_StringEncodingType_Encoding encoding);
02098
02116
02117 SQLDBC_DLLEXPORT
02118 SQLDBC_Retcode SQLDBC_Statement_executeNTS(SQLDBC_Statement* hdl,
02119 char *sql,
02120 SQLDBC_StringEncodingType_Encoding encoding);
02121
02136
02137 SQLDBC_DLLEXPORT
02138 SQLDBC_Retcode SQLDBC_Statement_executeASCII(SQLDBC_Statement* hdl, char *sql);
02139
02155 SQLDBC_DLLEXPORT
02156 void SQLDBC_Statement_setResultSetFetchSize(SQLDBC_Statement* hdl, SQLDBC_Int2 rows);
02157
02172 SQLDBC_DLLEXPORT
02173 void SQLDBC_Statement_setMaxRows(SQLDBC_Statement* hdl, SQLDBC_UInt4 rows);
02174
02184 SQLDBC_DLLEXPORT
02185 SQLDBC_UInt4 SQLDBC_Statement_getMaxRows(SQLDBC_Statement* hdl);
02186
02196 SQLDBC_DLLEXPORT
02197 SQLDBC_ResultSet * SQLDBC_Statement_getResultSet(SQLDBC_Statement* hdl);
02198
02214 SQLDBC_DLLEXPORT
02215 void SQLDBC_Statement_setCursorName(SQLDBC_Statement* hdl,
02216 char *buffer,
02217 SQLDBC_Length bufferLength,
02218 SQLDBC_StringEncodingType_Encoding encoding);
02219
02238 SQLDBC_DLLEXPORT
02239 SQLDBC_Retcode SQLDBC_Statement_setCommandInfo(SQLDBC_Statement* hdl,
02240 const char *buffer,
02241 SQLDBC_Length bufferLength,
02242 SQLDBC_Int4 lineNumber);
02266 SQLDBC_DLLEXPORT
02267 SQLDBC_Retcode SQLDBC_Statement_getCursorName(SQLDBC_Statement* hdl,
02268 char *buffer,
02269 SQLDBC_StringEncodingType_Encoding encoding,
02270 SQLDBC_Length bufferSize,
02271 SQLDBC_Length *bufferLength);
02272
02290 SQLDBC_DLLEXPORT
02291 SQLDBC_Retcode SQLDBC_Statement_getTableName(SQLDBC_Statement* hdl,
02292 char *buffer,
02293 SQLDBC_StringEncodingType_Encoding encoding,
02294 SQLDBC_Length bufferSize,
02295 SQLDBC_Length *bufferLength);
02296
02312 SQLDBC_DLLEXPORT
02313 SQLDBC_Bool SQLDBC_Statement_isQuery(SQLDBC_Statement* hdl);
02314
02326 SQLDBC_DLLEXPORT
02327 SQLDBC_Int4 SQLDBC_Statement_getKernelVersion(SQLDBC_Statement* hdl);
02328
02329
02341 SQLDBC_DLLEXPORT
02342 SQLDBC_Int4 SQLDBC_Statement_getRowsAffected(SQLDBC_Statement* hdl);
02343
02344 typedef enum SQLDBC_Statement_ResultSetType {
02345 SQLDBC_Statement_ResultSetType_FORWARD_ONLY = 1,
02346 SQLDBC_Statement_ResultSetType_SCROLL_SENSITIVE = 2,
02347 SQLDBC_Statement_ResultSetType_SCROLL_INSENSITIVE = 3
02348 } SQLDBC_Statement_ResultSetType ;
02349
02370 SQLDBC_DLLEXPORT
02371 void SQLDBC_Statement_setResultSetType (SQLDBC_Statement* hdl, SQLDBC_Statement_ResultSetType type );
02372
02387 SQLDBC_DLLEXPORT
02388 SQLDBC_Statement_ResultSetType SQLDBC_Statement_getResultSetType(SQLDBC_Statement* hdl);
02389
02390 typedef enum SQLDBC_Statement_ConcurrencyType {
02391 SQLDBC_Statement_ConcurrencyType_CONCUR_UPDATABLE = 10,
02392 SQLDBC_Statement_ConcurrencyType_CONCUR_READ_ONLY = 11
02393 }SQLDBC_Statement_ConcurrencyType;
02394
02410 SQLDBC_DLLEXPORT
02411 void SQLDBC_Statement_setResultSetConcurrencyType (SQLDBC_Statement* hdl, SQLDBC_Statement_ConcurrencyType type);
02412
02413 typedef enum SQLDBC_Statement_HoldabilityType {
02414 SQLDBC_Statement_HoldabilityType_CURSOR_HOLD_OVER_COMMIT = 20,
02415 SQLDBC_Statement_HoldabilityType_CURSOR_CLOSE_ON_COMMIT = 21
02416 } SQLDBC_Statement_HoldabilityType;
02417
02428 SQLDBC_DLLEXPORT
02429 SQLDBC_Statement_ConcurrencyType SQLDBC_Statement_getResultSetConcurrencyType(SQLDBC_Statement* hdl);
02430
02441 SQLDBC_DLLEXPORT
02442 SQLDBC_Int4 * SQLDBC_Statement_getRowStatus(SQLDBC_Statement* hdl);
02443
02451 SQLDBC_DLLEXPORT
02452 SQLDBC_UInt4 SQLDBC_Statement_getBatchSize(SQLDBC_Statement* hdl);
02453
02466 SQLDBC_DLLEXPORT
02467 SQLDBC_Retcode SQLDBC_Statement_addBatch(SQLDBC_Statement* hdl,
02468 char *sql,
02469 SQLDBC_Length sqlLength,
02470 SQLDBC_StringEncodingType_Encoding encoding);
02471
02480
02481 SQLDBC_DLLEXPORT
02482 SQLDBC_Retcode SQLDBC_Statement_addBatchNTS(SQLDBC_Statement* hdl,
02483 char *sql,
02484 SQLDBC_StringEncodingType_Encoding encoding);
02485
02494
02495 SQLDBC_DLLEXPORT
02496 SQLDBC_Retcode SQLDBC_Statement_addBatchASCII(SQLDBC_Statement* hdl, char *sql);
02497
02506 SQLDBC_DLLEXPORT
02507 SQLDBC_Retcode SQLDBC_Statement_executeBatch(SQLDBC_Statement* hdl);
02508
02514 SQLDBC_DLLEXPORT
02515 void SQLDBC_Statement_clearBatch(SQLDBC_Statement* hdl);
02516
02532 SQLDBC_DLLEXPORT
02533 SQLDBC_Retcode SQLDBC_Statement_getLastInsertedKey(SQLDBC_Statement *hdl,
02534 SQLDBC_Int4 tag,
02535 SQLDBC_HostType type,
02536 void *paramAddr,
02537 SQLDBC_Length *lengthIndicator,
02538 SQLDBC_Length size,
02539 SQLDBC_Bool terminate);
02540
02541
02542
02704 #ifndef BUILD_INTERFACE_RUNTIME
02705 typedef struct SQLDBC_PreparedStatement SQLDBC_PreparedStatement;
02706 #endif
02707
02718
02719 SQLDBC_DLLEXPORT
02720 SQLDBC_ErrorHndl* SQLDBC_PreparedStatement_getError(SQLDBC_PreparedStatement* hdl);
02721
02726 SQLDBC_DLLEXPORT
02727 void SQLDBC_PreparedStatement_clearError(SQLDBC_PreparedStatement* hdl);
02728
02738
02739 SQLDBC_DLLEXPORT
02740 SQLDBC_SQLWarning* SQLDBC_PreparedStatement_getWarning(SQLDBC_PreparedStatement* hdl);
02741
02746 SQLDBC_DLLEXPORT
02747 void SQLDBC_PreparedStatement_clearWarnings(SQLDBC_PreparedStatement* hdl);
02748
02749
02765 SQLDBC_DLLEXPORT
02766 void SQLDBC_PreparedStatement_setResultSetFetchSize(SQLDBC_PreparedStatement* hdl, SQLDBC_Int2 rows);
02767
02782 SQLDBC_DLLEXPORT
02783 void SQLDBC_PreparedStatement_setMaxRows(SQLDBC_PreparedStatement* hdl, SQLDBC_UInt4 rows);
02784
02794 SQLDBC_DLLEXPORT
02795 SQLDBC_UInt4 SQLDBC_PreparedStatement_getMaxRows(SQLDBC_PreparedStatement* hdl);
02796
02806 SQLDBC_DLLEXPORT
02807 SQLDBC_ResultSet * SQLDBC_PreparedStatement_getResultSet(SQLDBC_PreparedStatement* hdl);
02808
02824 SQLDBC_DLLEXPORT
02825 void SQLDBC_PreparedStatement_setCursorName(SQLDBC_PreparedStatement* hdl,
02826 const char *buffer,
02827 SQLDBC_Length bufferLength,
02828 const SQLDBC_StringEncodingType_Encoding encoding);
02829
02847 SQLDBC_DLLEXPORT
02848 SQLDBC_Retcode SQLDBC_PreparedStatement_setCommandInfo(SQLDBC_PreparedStatement* hdl,
02849 const char *buffer,
02850 SQLDBC_Length bufferLength,
02851 SQLDBC_Int4 lineNumber);
02875 SQLDBC_DLLEXPORT
02876 SQLDBC_Retcode SQLDBC_PreparedStatement_getCursorName(SQLDBC_PreparedStatement* hdl,
02877 char *buffer,
02878 const SQLDBC_StringEncodingType_Encoding encoding,
02879 const SQLDBC_Length bufferSize,
02880 SQLDBC_Length *bufferLength);
02881
02899 SQLDBC_DLLEXPORT
02900 SQLDBC_Retcode SQLDBC_PreparedStatement_getTableName(SQLDBC_PreparedStatement* hdl,
02901 char *buffer,
02902 const SQLDBC_StringEncodingType_Encoding encoding,
02903 const SQLDBC_Length bufferSize,
02904 SQLDBC_Length *bufferLength);
02905
02921 SQLDBC_DLLEXPORT
02922 SQLDBC_Bool SQLDBC_PreparedStatement_isQuery(SQLDBC_PreparedStatement* hdl);
02923
02935 SQLDBC_DLLEXPORT
02936 SQLDBC_Int4 SQLDBC_PreparedStatement_getRowsAffected(SQLDBC_PreparedStatement* hdl);
02937
02959 SQLDBC_DLLEXPORT
02960 void SQLDBC_PreparedStatement_setResultSetType (SQLDBC_PreparedStatement* hdl, SQLDBC_Statement_ResultSetType type );
02961
02976 SQLDBC_DLLEXPORT
02977 SQLDBC_Statement_ResultSetType SQLDBC_PreparedStatement_getResultSetType(SQLDBC_PreparedStatement* hdl);
02978
02994 SQLDBC_DLLEXPORT
02995 void SQLDBC_PreparedStatement_setResultSetConcurrencyType (SQLDBC_PreparedStatement* hdl, SQLDBC_Statement_ConcurrencyType type);
02996
03007 SQLDBC_DLLEXPORT
03008 SQLDBC_Statement_ConcurrencyType SQLDBC_PreparedStatement_getResultSetConcurrencyType(SQLDBC_PreparedStatement* hdl);
03009
03020 SQLDBC_DLLEXPORT
03021 SQLDBC_Int4 * SQLDBC_PreparedStatement_getRowStatus(SQLDBC_PreparedStatement* hdl);
03022
03030 SQLDBC_DLLEXPORT
03031 SQLDBC_UInt4 SQLDBC_PreparedStatement_getBatchSize(SQLDBC_PreparedStatement* hdl);
03032
03033
03042 SQLDBC_DLLEXPORT
03043 SQLDBC_Retcode SQLDBC_PreparedStatement_executeBatch(SQLDBC_PreparedStatement* hdl);
03044
03050 SQLDBC_DLLEXPORT
03051 void SQLDBC_PreparedStatement_clearBatch(SQLDBC_PreparedStatement* hdl);
03052
03068 SQLDBC_DLLEXPORT
03069 SQLDBC_Retcode SQLDBC_PreparedStatement_getLastInsertedKey(SQLDBC_PreparedStatement *hdl,
03070 SQLDBC_Int4 tag,
03071 SQLDBC_HostType type,
03072 void *paramAddr,
03073 SQLDBC_Length *lengthIndicator,
03074 SQLDBC_Length size,
03075 SQLDBC_Bool terminate);
03076
03087 SQLDBC_DLLEXPORT
03088 SQLDBC_Retcode SQLDBC_PreparedStatement_prepare(SQLDBC_PreparedStatement* hdl,
03089 const char *sql,
03090 const SQLDBC_Length sqlLength,
03091 const SQLDBC_StringEncodingType_Encoding encoding);
03092
03106
03107 SQLDBC_DLLEXPORT
03108 SQLDBC_Retcode SQLDBC_PreparedStatement_prepareNTS(SQLDBC_PreparedStatement* hdl,
03109 const char *sql,
03110 const SQLDBC_StringEncodingType_Encoding encoding);
03111
03122
03123 SQLDBC_DLLEXPORT
03124 SQLDBC_Retcode SQLDBC_PreparedStatement_prepareASCII(SQLDBC_PreparedStatement* hdl, const char *sql);
03125
03140
03141 SQLDBC_DLLEXPORT
03142 SQLDBC_Retcode SQLDBC_PreparedStatement_executeASCII(SQLDBC_PreparedStatement* hdl);
03143
03155 SQLDBC_DLLEXPORT
03156 SQLDBC_ParameterMetaData* SQLDBC_PreparedStatement_getParameterMetaData(SQLDBC_PreparedStatement* hdl);
03157
03180 SQLDBC_DLLEXPORT
03181 SQLDBC_ResultSetMetaData* SQLDBC_PreparedStatement_getResultSetMetaData(SQLDBC_PreparedStatement* hdl);
03182
03191 SQLDBC_DLLEXPORT
03192 SQLDBC_Retcode SQLDBC_PreparedStatement_setBatchSize(SQLDBC_PreparedStatement* hdl, SQLDBC_UInt4 rowarraysize);
03193
03207 SQLDBC_DLLEXPORT
03208 SQLDBC_UInt4 SQLDBC_PreparedStatement_getPreferredBatchSize(SQLDBC_PreparedStatement* hdl);
03209
03210
03222 SQLDBC_DLLEXPORT
03223 SQLDBC_Retcode SQLDBC_PreparedStatement_clearParameters(SQLDBC_PreparedStatement* hdl);
03224
03225
03271 SQLDBC_DLLEXPORT
03272 SQLDBC_Retcode SQLDBC_PreparedStatement_bindParameter (SQLDBC_PreparedStatement* hdl,
03273 const SQLDBC_UInt2 Index,
03274 const SQLDBC_HostType Type,
03275 void *paramAddr,
03276 SQLDBC_Length *LengthIndicator,
03277 const SQLDBC_Length Size,
03278 const SQLDBC_Bool Terminate);
03279
03328 SQLDBC_DLLEXPORT
03329 SQLDBC_Retcode SQLDBC_PreparedStatement_bindParameterAddr(SQLDBC_PreparedStatement* hdl,
03330 const SQLDBC_UInt2 Index,
03331 const SQLDBC_HostType Type,
03332 void *paramAddr,
03333 SQLDBC_Length *LengthIndicator,
03334 const SQLDBC_Length Size,
03335 const SQLDBC_Bool Terminate);
03336
03355 SQLDBC_DLLEXPORT
03356 SQLDBC_Retcode SQLDBC_PreparedStatement_setBindingType(SQLDBC_PreparedStatement* hdl, SQLDBC_size_t size);
03357
03358
03381 SQLDBC_DLLEXPORT
03382 SQLDBC_Retcode SQLDBC_PreparedStatement_nextParameterByIndex(SQLDBC_PreparedStatement* hdl, SQLDBC_Int2* paramIndex, void** paramAddr);
03383
03384
03399 SQLDBC_DLLEXPORT
03400 SQLDBC_Retcode SQLDBC_PreparedStatement_putData(SQLDBC_PreparedStatement* hdl, void *paramAddr, SQLDBC_Length *paramLengthIndicator);
03401
03451 SQLDBC_DLLEXPORT
03452 SQLDBC_Retcode SQLDBC_PreparedStatement_getObject(
03453 SQLDBC_PreparedStatement* hdl,
03454 SQLDBC_Int4 Index,
03455 SQLDBC_HostType Type,
03456 void *paramAddr,
03457 SQLDBC_Length *LengthIndicator,
03458 SQLDBC_Length Size,
03459 SQLDBC_Bool Terminate);
03460
03513
03514 SQLDBC_DLLEXPORT
03515 SQLDBC_Retcode SQLDBC_PreparedStatement_getObjectByPos(
03516 SQLDBC_PreparedStatement* hdl,
03517 SQLDBC_Int4 Index,
03518 SQLDBC_HostType Type,
03519 void *paramAddr,
03520 SQLDBC_Length *LengthIndicator,
03521 SQLDBC_Length Size,
03522 SQLDBC_Length StartPos,
03523 SQLDBC_Bool Terminate);
03524
03525
03693 #ifndef BUILD_INTERFACE_RUNTIME
03694 typedef struct SQLDBC_ConnectProperties SQLDBC_ConnectProperties;
03695 #endif
03696
03702 SQLDBC_DLLEXPORT
03703
03704 SQLDBC_ConnectProperties* SQLDBC_ConnectProperties_new_SQLDBC_ConnectProperties();
03705
03706
03711
03712 SQLDBC_DLLEXPORT
03713 void SQLDBC_ConnectProperties_delete_SQLDBC_ConnectProperties(SQLDBC_ConnectProperties* hdl);
03714
03715
03723 SQLDBC_DLLEXPORT
03724 void SQLDBC_ConnectProperties_setProperty(SQLDBC_ConnectProperties* hdl, const char *key, const char *value);
03725
03734 SQLDBC_DLLEXPORT
03735 char * SQLDBC_ConnectProperties_getProperty(SQLDBC_ConnectProperties* hdl, const char *key, const char *defaultvalue);
03736
03737
03738
03749 #ifndef BUILD_INTERFACE_RUNTIME
03750 typedef struct SQLDBC_Connection SQLDBC_Connection;
03751 #endif
03752
03763
03764 SQLDBC_DLLEXPORT
03765 SQLDBC_ErrorHndl* SQLDBC_Connection_getError(SQLDBC_Connection* hdl);
03766
03771 SQLDBC_DLLEXPORT
03772 void SQLDBC_Connection_clearError(SQLDBC_Connection* hdl);
03773
03783
03784 SQLDBC_DLLEXPORT
03785 SQLDBC_SQLWarning* SQLDBC_Connection_getWarning(SQLDBC_Connection* hdl);
03786
03791 SQLDBC_DLLEXPORT
03792 void SQLDBC_Connection_clearWarnings(SQLDBC_Connection* hdl);
03793
03794
03918 SQLDBC_DLLEXPORT
03919 SQLDBC_Retcode SQLDBC_Connection_connect(SQLDBC_Connection* hdl,
03920 const char* servernode,
03921 SQLDBC_Length servernodeLength,
03922 const char* serverdb,
03923 SQLDBC_Length serverdbLength,
03924 const char* username,
03925 SQLDBC_Length usernameLength,
03926 const char* password,
03927 SQLDBC_Length passwordLength,
03928 const SQLDBC_StringEncodingType_Encoding userpwdEncoding,
03929 const SQLDBC_ConnectProperties* properties);
03930
03954
03955 SQLDBC_DLLEXPORT
03956 SQLDBC_Retcode SQLDBC_Connection_connectNTS(SQLDBC_Connection* hdl,
03957 const char* servernode,
03958 const char* serverdb,
03959 const char* username,
03960 const char* password,
03961 const SQLDBC_StringEncodingType_Encoding userpwdEncoding,
03962 const SQLDBC_ConnectProperties* properties);
03963
03981
03982 SQLDBC_DLLEXPORT
03983 SQLDBC_Retcode SQLDBC_Connection_connectASCII(SQLDBC_Connection* hdl,
03984 const char* servernode,
03985 const char* serverdb,
03986 const char* username,
03987 const char* password,
03988 const SQLDBC_ConnectProperties* properties);
03989
03990
03991
04006
04007 SQLDBC_DLLEXPORT
04008 SQLDBC_Retcode SQLDBC_Connection_connectPROP(SQLDBC_Connection* hdl,
04009 const SQLDBC_ConnectProperties* properties);
04010
04011
04026 SQLDBC_DLLEXPORT
04027 SQLDBC_Statement * SQLDBC_Connection_createStatement(SQLDBC_Connection* hdl);
04028
04039 SQLDBC_DLLEXPORT
04040 SQLDBC_PreparedStatement * SQLDBC_Connection_createPreparedStatement(SQLDBC_Connection* hdl);
04041
04053 SQLDBC_DLLEXPORT
04054 SQLDBC_Retcode SQLDBC_Connection_commit(SQLDBC_Connection* hdl);
04055
04062 SQLDBC_DLLEXPORT
04063 SQLDBC_Retcode SQLDBC_Connection_rollback(SQLDBC_Connection* hdl);
04064
04071 SQLDBC_DLLEXPORT
04072 void SQLDBC_Connection_releaseStatement(SQLDBC_Connection* hdl, SQLDBC_Statement *stmt);
04073
04080
04081 SQLDBC_DLLEXPORT
04082 void SQLDBC_Connection_releasePreparedStatement(SQLDBC_Connection* hdl, SQLDBC_PreparedStatement *stmt);
04083
04100 SQLDBC_DLLEXPORT
04101 SQLDBC_Retcode SQLDBC_Connection_cancel(SQLDBC_Connection* hdl);
04102
04118 SQLDBC_DLLEXPORT
04119 SQLDBC_Retcode SQLDBC_Connection_close(SQLDBC_Connection* hdl);
04120
04121
04137 SQLDBC_DLLEXPORT
04138 SQLDBC_Retcode SQLDBC_Connection_commitWorkRelease(SQLDBC_Connection* hdl);
04139
04140
04158 SQLDBC_DLLEXPORT
04159 SQLDBC_Retcode SQLDBC_Connection_disconnect(SQLDBC_Connection* hdl);
04160
04161
04169 SQLDBC_DLLEXPORT
04170 void SQLDBC_Connection_setAutoCommit(SQLDBC_Connection* hdl, SQLDBC_Bool autocommit);
04171
04180 SQLDBC_DLLEXPORT
04181 SQLDBC_Bool SQLDBC_Connection_getAutoCommit(SQLDBC_Connection* hdl);
04182
04194 SQLDBC_DLLEXPORT
04195 void SQLDBC_Connection_setSQLMode(SQLDBC_Connection* hdl, SQLDBC_SQLMode sqlmode);
04196
04209 SQLDBC_DLLEXPORT
04210 SQLDBC_Retcode SQLDBC_Connection_setTransactionIsolation(SQLDBC_Connection* hdl, SQLDBC_Int4 isolationlevel);
04211
04220 SQLDBC_DLLEXPORT
04221 SQLDBC_Int4 SQLDBC_Connection_getTransactionIsolation(SQLDBC_Connection* hdl);
04222
04232 SQLDBC_DLLEXPORT
04233 SQLDBC_Bool SQLDBC_Connection_isConnected(SQLDBC_Connection* hdl);
04234
04249 SQLDBC_DLLEXPORT
04250 SQLDBC_Int4 SQLDBC_Connection_getKernelVersion(SQLDBC_Connection* hdl);
04251
04259 SQLDBC_DLLEXPORT
04260 SQLDBC_Bool SQLDBC_Connection_isUnicodeDatabase(SQLDBC_Connection* hdl);
04261
04268 SQLDBC_DLLEXPORT
04269 SQLDBC_DateTimeFormat_Format SQLDBC_Connection_getDateTimeFormat(SQLDBC_Connection* hdl);
04270
04271
04272
04273 #ifdef SQLDBC_FEATURE_PROFILE
04274
04291 #ifndef BUILD_INTERFACE_RUNTIME
04292 typedef struct SQLDBC_Profile SQLDBC_Profile;
04293 #endif
04294
04300 SQLDBC_DLLEXPORT
04301 void SQLDBC_Profile_resetCounters(SQLDBC_Profile *hdl);
04302
04308 SQLDBC_DLLEXPORT
04309 void SQLDBC_Profile_collectCounters(SQLDBC_Profile *hdl);
04310
04319 SQLDBC_DLLEXPORT
04320 SQLDBC_UInt8 SQLDBC_Profile_getCounter(SQLDBC_Profile *hdl, SQLDBC_ProfileCountValues counter);
04321
04322 #endif
04323
04324
04329 #ifndef BUILD_INTERFACE_RUNTIME
04330 typedef struct SQLDBC_Environment SQLDBC_Environment;
04331 #endif
04332
04339 SQLDBC_DLLEXPORT
04340
04341 SQLDBC_Environment* SQLDBC_Environment_new_SQLDBC_Environment(SQLDBC_IRuntime* runtime);
04342
04348 SQLDBC_DLLEXPORT
04349
04350 void SQLDBC_Environment_delete_SQLDBC_Environment(SQLDBC_Environment* hdl);
04351
04359 SQLDBC_DLLEXPORT
04360 SQLDBC_Connection * SQLDBC_Environment_createConnection(SQLDBC_Environment* hdl);
04361
04362
04370 SQLDBC_DLLEXPORT
04371 void SQLDBC_Environment_releaseConnection(SQLDBC_Environment* hdl, SQLDBC_Connection *connection);
04372
04388 SQLDBC_DLLEXPORT
04389 char * SQLDBC_Environment_getLibraryVersion(SQLDBC_Environment* hdl);
04390
04400 SQLDBC_DLLEXPORT
04401
04402 char *getSDKVersion();
04403
04404
04405 #ifdef SQLDBC_FEATURE_TRACEOPTION
04406
04477 SQLDBC_DLLEXPORT
04478 void SQLDBC_Environment_setTraceOptions(SQLDBC_Environment *hdl, const SQLDBC_ConnectProperties* traceoptions);
04479
04488 SQLDBC_DLLEXPORT
04489 void SQLDBC_Environment_getTraceOptions(SQLDBC_Environment *hdl, SQLDBC_ConnectProperties* traceoptions);
04490 #endif
04491
04492 #ifdef SQLDBC_FEATURE_PROFILE
04493
04500 SQLDBC_DLLEXPORT
04501 SQLDBC_Profile* SQLDBC_Environment_getProfile(SQLDBC_Environment *hdl);
04502
04503 #endif
04504
04514
04515 SQLDBC_DLLEXPORT SQLDBC_IRuntime* ClientRuntime_GetClientRuntime(char *errorText,SQLDBC_Int4 errorTextSize);
04516
04526
04527 SQLDBC_DLLEXPORT SQLDBC_IRuntime* ClientRuntime_GetSingleThreadClientRuntime(char *errorText,SQLDBC_Int4 errorTextSize);
04528
04529 #ifdef __cplusplus
04530 }
04531 #endif
04532
04533 #endif