⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 enums.html

📁 能够连接各种数据库的API
💻 HTML
📖 第 1 页 / 共 2 页
字号:
                        Uncommitted'<BR><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_ReadCommitted = 
                        SA_ANSILevel1,&nbsp;&nbsp;&nbsp;&nbsp; //&nbsp; 
                        </STRONG>isolation level 'Read 
                        Committed'<STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_RepeatableRead = SA_ANSILevel2,&nbsp;&nbsp;&nbsp; 
                        //&nbsp; </STRONG>isolation level 'Repeatable 
                        Read'<STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_Serializable = 
                        SA_ANSILevel3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        //&nbsp; </STRONG>isolation level 
                        'Serializable'<STRONG><BR>} 
                        SAIsolationLevel_t;</STRONG></FONT></P>
                        <hr>
                        <P><A name=SAAutoCommit_t><STRONG>SAAutoCommit_t</A> enum</STRONG> describes autocommit modes:</P>
                        <P><FONT face=Arial size=2><STRONG>typedef enum { 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_AutoCommitUnknown = -1,&nbsp; //&nbsp; 
                        </STRONG>Autocommit mode is 
                        unknown<STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_AutoCommitOff,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        //&nbsp; </STRONG>Autocommit is 
                        off<STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_AutoCommitOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        //&nbsp; </STRONG>Autocommit is on<STRONG><BR>} 
                        SAAutoCommit_t;</STRONG></FONT></P>
                        <hr>
                        <P><A name=SADataType_t><STRONG>SADataType_t</A> enum</STRONG> describes a list of supported 
                        datatypes:</P>
                        <P><FONT face=Arial size=2><STRONG>typedef enum { 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_dtUnknown, 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        <STRONG>SA_dtBool,</STRONG> 
                         
                         </STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        // data type is C <STRONG>bool</STRONG> 
                        &nbsp;&nbsp; 
                        <BR><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_dtShort,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        // </STRONG>data type is C 
                        <STRONG>short</STRONG><STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_dtLong,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        // </STRONG>data type is C 
                        <STRONG>long</STRONG><STRONG><BR> 
                         </STRONG><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_dtDouble,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        // </STRONG>data type is C 
                        <STRONG>double</STRONG><BR>
                        <STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_dtNumeric,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        // </STRONG>data type is 
                        <STRONG>SANumeric (used internally)</STRONG><STRONG><BR>                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_dtDateTime,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 
                        </STRONG>     data type 
                        is<STRONG> 
                        SADateTime</STRONG><STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_dtString,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        // </STRONG>data type is character string 
                        (<STRONG>SAString</STRONG>)<STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_dtBytes,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        // </STRONG>data type is binary string 
                        (<STRONG>SAString</STRONG>)<STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_dtLongBinary,&nbsp;&nbsp; // </STRONG>data type is 
                        long binary data (<STRONG>SAString</STRONG>) 
                        <BR><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_dtLongChar,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // 
                        </STRONG>data type is long character data 
                        (<STRONG>SAString</STRONG>)<STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_dtBLob,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        // </STRONG>data type is BLob data 
                        (<STRONG>SAString</STRONG>)<STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_dtCLob,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        // </STRONG>data type is CLob data 
                        (<STRONG>SAString</STRONG>)<BR><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_dtCursor,</STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        // data type is Oracle REF CURSOR 
                        (<STRONG>SACommand</STRONG>)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        <STRONG>SA_dtSpecificToDBMS</STRONG>&nbsp;&nbsp; // data 
                        type is server-specific and not interpreted by 
                        SQLAPI++<BR><STRONG>} 
                        SADataType_t;</STRONG></FONT></P>
                        <hr>
                        <P><A name=SACommandType_t><STRONG>SACommandType_t</A> enum</STRONG> describes types of a command:</P>
                        <P><FONT face=Arial size=2><STRONG>typedef enum { 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_CmdUnknown,&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp; 
                        </STRONG>Command type is not 
                        defined<STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_CmdSQLStmt,&nbsp;&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp; 
                        </STRONG>Command is an SQL 
                        statement<BR><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_CmdStoredProc&nbsp; //&nbsp;&nbsp; </STRONG>Command 
                        is a stored procedure or a function<STRONG><BR>} 
                        SACommandType_t;</STRONG></FONT></P>
                        <hr>
                        <P><A name=SAParamDirType_t><STRONG>SAParamDirType_t</A> enum</STRONG> describes types of a parameter:</P>
                        <P><FONT face=Arial size=2><STRONG>typedef enum { 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_ParamInput,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        //&nbsp; </STRONG>Input 
                        parameter<STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_ParamInputOutput,&nbsp; //&nbsp;&nbsp; 
                        </STRONG>Input/output 
                        parameter<STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_ParamOutput,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        //&nbsp;&nbsp; </STRONG>Output 
                        parameter<STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_ParamReturn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        //&nbsp;&nbsp; </STRONG>Returning parameter<STRONG><BR>} 
                        SAParamDirType_t;</STRONG></FONT></P>
                        <hr>
                        <P><A 
                        name=SALongOrLobReaderModes_t><STRONG>SALongOrLobReaderModes_t</A> enum</STRONG> 
                        describes Long or Lob(CLob) data reading 
                        modes:</P>
                        <P><FONT face=Arial size=2><STRONG>typedef enum { 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_LongOrLobReaderDefault,&nbsp; //&nbsp;&nbsp; 
                        </STRONG>Long or Lob(CLob) data reading mode is 
                        default<STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_LongOrLobReaderManual&nbsp; //&nbsp;&nbsp; 
                        </STRONG>Long or Lob(CLob) data reading mode is 
                        manual<STRONG><BR>} 
                        SALongOrLobReaderModes_t;</STRONG></FONT></P>
                        <hr>
                        <P><A name=SAPieceType_t><STRONG>SAPieceType_t</A> enum</STRONG> describes read piece of Long or Lob(CLob) 
                        data description:</P>
                        <P><FONT face=Arial size=2><STRONG>typedef enum { 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_FirstPiece = 1,&nbsp;&nbsp; //&nbsp;&nbsp; 
                        </STRONG>The first (but not the last) piece of data 
                        <STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_NextPiece = 2,&nbsp; //&nbsp;&nbsp; </STRONG>The next 
                        (not the first and not the last) piece of data 
                        <STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_LastPiece = 3,&nbsp; //&nbsp;&nbsp; </STRONG>The last 
                        piece of data 
                        <STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SA_OnePiece = 4&nbsp;&nbsp; //&nbsp;&nbsp; </STRONG>All 
                        required data is represented as one block<BR><STRONG>} 
                        SAPieceType_t;</STRONG></FONT></P>
                        <hr>
                        <P><A 
                        name=saLongOrLobWriter_t><STRONG>saLongOrLobWriter_t</A> typedef 
                        declaration</STRONG> defines Long or Lob writer 
                        callback:</P>
                        <P><FONT face=Arial 
                        size=2><STRONG>typedef unsigned int 
                        (*saLongOrLobWriter_t) 
                        (<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SAPieceType_t &amp;ePieceType,&nbsp; 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        void *pBuf,&nbsp; 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        unsigned int nLen,&nbsp; 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        void *pAddlData );</STRONG></FONT>      
                        </P>
                        <P>User defined function has the 
                        following parameters:</P>
                        <P><EM>ePieceType</EM>.&nbsp;&nbsp;&nbsp; Defines which 
                        piece of data value was written. Can be one of the&nbsp; 
                        <A href="#SAPieceType_t">SAPieceType_t</A> enum 
                        values.</P>
                        <P><EM>pBuf</EM>.&nbsp;&nbsp;&nbsp; Pointer to the buffer 
                        that contains the data block written to database.</P>
                        <P><EM>nLen</EM>.&nbsp;&nbsp;&nbsp; The actual size of 
                        data in buffer <EM>pBuf</EM>.</P>
                        <P><EM>pAddData</EM>.&nbsp;&nbsp;&nbsp; An additional 
                        data user want to pass to the function.</P>
                        <hr>
                        <P><A 
                        name=saLongOrLobReader_t><STRONG>saLongOrLobReader_t</A> typedef 
                        declaration</STRONG> defines Long or Lob reader 
                        callback:</P>
                        <P><FONT face=Arial 
                        size=2><STRONG>typedef unsigned int 
                        (*saLongOrLobReader_t) 
                        (<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        SAPieceType_t ePieceType,&nbsp; 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        void *pBuf,&nbsp; 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        unsigned int nLen,&nbsp; 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        unsigned int nBlobSize,&nbsp;&nbsp; 
                        <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        void *pAddlData );</STRONG></FONT>      
                        </P>
                        <P>User defined function has the 
                        following parameters:</P>
                        <P><EM>ePieceType</EM>.&nbsp;&nbsp;&nbsp; Parameter 
                        passed to the function from SQLAPI++ Library mechanisms. 
                        It&nbsp; defines which piece of data value was read. Can 
                        be one of the&nbsp; <A 
                        href="#SAPieceType_t">SAPieceType_t</A> enum values.</P>
                        <P><EM>pBuf</EM>.&nbsp;&nbsp;&nbsp; Pointer to the buffer 
                        that contains the data block read from database.</P>
                        <P><EM>nLen</EM>.&nbsp;&nbsp;&nbsp; The actual size of 
                        data in buffer <EM>pBuf</EM>.</P>
                        <P><EM>nBlobSize</EM>.&nbsp;&nbsp;&nbsp; A size of whole 
                        Long or BLob(CLob) field (if DBMS server allows to know 
                        it before whole field was read; otherwise 0).</P>
                        <P><EM>pAddData</EM>.&nbsp;&nbsp;&nbsp; An additional 
                        data user want to pass to the function.</P>
                        <P>&nbsp;</P></td>
				</tr>			
			</table>

			<H3>Problems and Questions</H3>
			<P>			If 
			you haven't found the answer to your questions or 
            have some problems on using the Library, please, send e-mail to <A 
            href="mailto:howto@sqlapi.com">howto@sqlapi.com</A>.
			</P>
		</td>
	<tr></tr>
</table>
</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -