sqlora_8h-source.html
来自「一个很好用的Linux/Unix下Oracle OCI开发接口封装库」· HTML 代码 · 共 551 行 · 第 1/4 页
HTML
551 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>sqlora.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="globals.html">Globals</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindex" href="examples.html">Examples</a> </center>
<hr><h1>sqlora.h</h1><a href="sqlora_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="preprocessor">#ifndef __SQLORA8_H_LOADED</span>
00002 <span class="preprocessor"></span><span class="preprocessor">#define __SQLORA8_H_LOADED</span>
00003 <span class="preprocessor"></span><span class="comment">/* $Id: sqlora_8h-source.html,v 1.1 2005/01/13 02:56:43 cvsroot Exp $ */</span>
00017 <span class="comment">/*</span>
00018 <span class="comment"> *</span>
00019 <span class="comment"> * Permission to use, copy, modify, and distribute this software for</span>
00020 <span class="comment"> * any purpose with or without fee is hereby granted, provided that</span>
00021 <span class="comment"> * the above copyright notice and this permission notice appear in all</span>
00022 <span class="comment"> * copies.</span>
00023 <span class="comment"> *</span>
00024 <span class="comment"> * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED</span>
00025 <span class="comment"> * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF</span>
00026 <span class="comment"> * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.</span>
00027 <span class="comment"> * IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR</span>
00028 <span class="comment"> * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span>
00029 <span class="comment"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</span>
00030 <span class="comment"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF</span>
00031 <span class="comment"> * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND</span>
00032 <span class="comment"> * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,</span>
00033 <span class="comment"> * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT</span>
00034 <span class="comment"> * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF</span>
00035 <span class="comment"> * SUCH DAMAGE.</span>
00036 <span class="comment"> *</span>
00037 <span class="comment"> */</span>
00038
00039
00063 <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span>
00064 <span class="preprocessor"></span><span class="preprocessor">#include <stdio.h></span>
00065 <span class="preprocessor">#include "libsqlora8-config.h"</span>
00066 <span class="preprocessor">#endif </span><span class="comment">/* DOXYGEN_SHOULD_SKIP_THIS */</span>
00067
00068 <span class="comment">/*</span>
00069 <span class="comment"> * Definitions that allow this header file to be used either with or</span>
00070 <span class="comment"> * without ANSI C features like function prototypes.</span>
00071 <span class="comment"> */</span>
00072
00073
00074 <span class="comment">/* @def __BEGIN_DECLS</span>
00075 <span class="comment"> * __BEGIN_DECLS should be used at the beginning of your declarations,</span>
00076 <span class="comment"> * so that C++ compilers don't mangle their names. Use @ref__END_DECLS at</span>
00077 <span class="comment"> * the end of C declarations. </span>
00078 <span class="comment"> */</span>
00079
00080 <span class="comment">/* @def __END_DECLS</span>
00081 <span class="comment"> * Opposite of @ref __BEGIN_DECLS</span>
00082 <span class="comment"> */</span>
00083 <span class="preprocessor">#undef __BEGIN_DECLS</span>
00084 <span class="preprocessor"></span><span class="preprocessor">#undef __END_DECLS</span>
00085 <span class="preprocessor"></span><span class="preprocessor">#ifdef __cplusplus</span>
00086 <span class="preprocessor"></span><span class="preprocessor"># define __BEGIN_DECLS extern "C" {</span>
00087 <span class="preprocessor"></span><span class="preprocessor"># define __END_DECLS }</span>
00088 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00089 <span class="preprocessor"></span><span class="preprocessor"># define __BEGIN_DECLS </span><span class="comment">/* empty */</span>
00090 <span class="preprocessor"># define __END_DECLS </span><span class="comment">/* empty */</span>
00091 <span class="preprocessor">#endif</span>
00092 <span class="preprocessor"></span>
00093 <span class="comment">/*</span>
00094 <span class="comment"> * @def __P</span>
00095 <span class="comment"> * __P is a macro used to wrap function prototypes.</span>
00096 <span class="comment"> *</span>
00097 <span class="comment"> * Compilers that don't understand ANSI C prototypes still work, and ANSI C</span>
00098 <span class="comment"> * compilers can issue warnings about type mismatches. </span>
00099 <span class="comment"> * Use autoconf macro AC_C_PROTOTYPES to check for prototypes.</span>
00100 <span class="comment">*/</span>
00101 <span class="preprocessor">#undef __P</span>
00102 <span class="preprocessor"></span><span class="preprocessor">#if (defined(PROTOTYPES) || defined(__STDC__) || defined(__cplusplus) )</span>
00103 <span class="preprocessor"></span><span class="preprocessor"># define __P(protos) protos</span>
00104 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00105 <span class="preprocessor"></span><span class="preprocessor"># define __P(protos) ()</span>
00106 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00107 <span class="preprocessor"></span>
00108 <span class="comment">/*</span>
00109 <span class="comment"> * @def CONST</span>
00110 <span class="comment"> * Used to define constants.</span>
00111 <span class="comment"> *</span>
00112 <span class="comment"> * For ANSI C compilers this expands to const, for others its an empty definition.</span>
00113 <span class="comment"> * @note AC_C_CONST defines const empty if it is not supported.</span>
00114 <span class="comment"> */</span>
00115 <span class="preprocessor">#undef CONST</span>
00116 <span class="preprocessor"></span>
00117 <span class="preprocessor">#ifndef const</span>
00118 <span class="preprocessor"></span><span class="preprocessor"># if (defined(__STDC__) || defined(PROTOTYPES) || defined(__cplusplus))</span>
00119 <span class="preprocessor"></span><span class="preprocessor"># define CONST const</span>
00120 <span class="preprocessor"></span><span class="preprocessor"># else</span>
00121 <span class="preprocessor"></span><span class="preprocessor"># define CONST</span>
00122 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
00123 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00124 <span class="preprocessor"></span><span class="preprocessor"># define CONST</span>
00125 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00126 <span class="preprocessor"></span>
<a name="l00138"></a><a class="code" href="group__constants.html#a3">00138</a> <span class="keyword">enum</span> <a class="code" href="group__constants.html#a3">sqlo_status_codes</a> {
00139 <a class="code" href="group__constants.html#a3a25">SQLO_SUCCESS</a> = 0,
00140 <a class="code" href="group__constants.html#a3a26">SQLO_ERROR</a> = -1,
00141 <a class="code" href="group__constants.html#a3a27">SQLO_INVALID_HANDLE</a> = -2,
00142 <a class="code" href="group__constants.html#a3a28">SQLO_STILL_EXECUTING</a> = -3123,
00143 <a class="code" href="group__constants.html#a3a29">SQLO_CONTINUE</a> = -24200,
00144 <a class="code" href="group__constants.html#a3a30">SQLO_SUCCESS_WITH_INFO</a> = 1,
00145 <a class="code" href="group__constants.html#a3a31">SQLO_NEED_DATA</a> = 99,
00146 <a class="code" href="group__constants.html#a3a32">SQLO_NO_DATA</a> = 100
00147 };
00148
<a name="l00155"></a><a class="code" href="group__constants.html#a4">00155</a> <span class="keyword">enum</span> <a class="code" href="group__constants.html#a4">sqlo_error_codes</a> {
00156 <a class="code" href="group__constants.html#a4a33">SQLO_ERROR_BASE</a> = -30000,
00157 <a class="code" href="group__constants.html#a4a34">SQLO_INVALID_DB_HANDLE</a> = (<a class="code" href="group__constants.html#a4a33">SQLO_ERROR_BASE</a> - 1),
00158 <a class="code" href="group__constants.html#a4a35">SQLO_ERRMALLOC</a> = (<a class="code" href="group__constants.html#a4a33">SQLO_ERROR_BASE</a> - 2),
00159 <a class="code" href="group__constants.html#a4a36">SQLO_INVALID_STMT_HANDLE</a> = (<a class="code" href="group__constants.html#a4a33">SQLO_ERROR_BASE</a> - 3),
00160 <a class="code" href="group__constants.html#a4a37">SQLO_STMT_NOT_OPENED</a> = (<a class="code" href="group__constants.html#a4a33">SQLO_ERROR_BASE</a> - 4),
00162 <a class="code" href="group__constants.html#a4a38">SQLO_INVALID_STMT_TYPE</a> = (<a class="code" href="group__constants.html#a4a33">SQLO_ERROR_BASE</a> - 5),
00164 <a class="code" href="group__constants.html#a4a39">SQLO_STMT_NOT_PARSED</a> = (<a class="code" href="group__constants.html#a4a33">SQLO_ERROR_BASE</a> - 6),
00166 <a class="code" href="group__constants.html#a4a40">SQLO_INVALID_OCI_HANDLE_TYPE</a> = (<a class="code" href="group__constants.html#a4a33">SQLO_ERROR_BASE</a> - 7),
00168 <a class="code" href="group__constants.html#a4a41">SQLO_MALFORMED_VERSION_STR</a> = (<a class="code" href="group__constants.html#a4a33">SQLO_ERROR_BASE</a> - 8),
00170 <a class="code" href="group__constants.html#a4a42">SQLO_WRONG_VERSION</a> = (<a class="code" href="group__constants.html#a4a33">SQLO_ERROR_BASE</a> - 9),
00172 <a class="code" href="group__constants.html#a4a43">SQLO_INVALID_COLPOS</a> = (<a class="code" href="group__constants.html#a4a33">SQLO_ERROR_BASE</a> - 10),
00173 <a class="code" href="group__constants.html#a4a44">SQLO_INVALID_SQL</a> = (<a class="code" href="group__constants.html#a4a33">SQLO_ERROR_BASE</a> -11)
00174 };
00175
<a name="l00180"></a><a class="code" href="group__constants.html#a5">00180</a> <span class="keyword">enum</span> <a class="code" href="group__constants.html#a5">sqlo_constants</a> {
00181 <a class="code" href="group__constants.html#a5a45">SQLO_OFF</a> = 0,
00182 <a class="code" href="group__constants.html#a5a46">SQLO_ON</a> = 1,
00183 <a class="code" href="group__constants.html#a5a47">SQLO_NULL_IND</a> = -1,
00184 <a class="code" href="group__constants.html#a5a48">SQLO_NOT_NULL_IND</a> = 0,
00185 <a class="code" href="group__constants.html#a5a49">SQLO_STH_INIT</a> = -1,
00188 <span class="comment">/* constants for piece operations (lob writes). */</span>
00189 <a class="code" href="group__constants.html#a5a50">SQLO_ONE_PIECE</a> = 0,
00191 <a class="code" href="group__constants.html#a5a51">SQLO_FIRST_PIECE</a> = 1,
00193 <a class="code" href="group__constants.html#a5a52">SQLO_NEXT_PIECE</a> = 2,
00195 <a class="code" href="group__constants.html#a5a53">SQLO_LAST_PIECE</a> = 3
00198 };
00199
<a name="l00208"></a><a class="code" href="group__constants.html#a6">00208</a> <span class="keyword">enum</span> <a class="code" href="group__constants.html#a6">sqlo_data_types</a> {
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?