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

📄 sqlora_8h-source.html

📁 Linux下的操作oracle数据库的连接库
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>libsqlora8: sqlora.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.6 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <a class="qindex" href="examples.html">Examples</a></div><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.h,v 1.31 2004/03/20 12:29:42 kpoitschke 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 &lt;stdio.h&gt;</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 00094 00095 <span class="comment">/*</span>00096 <span class="comment"> * @def __P</span>00097 <span class="comment"> * __P is a macro used to wrap function prototypes.</span>00098 <span class="comment"> *</span>00099 <span class="comment"> * Compilers that don't understand ANSI C prototypes still work, and ANSI C</span>00100 <span class="comment"> * compilers can issue warnings about type mismatches. </span>00101 <span class="comment"> * Use autoconf macro AC_C_PROTOTYPES to check for prototypes.</span>00102 <span class="comment">*/</span>00103 <span class="preprocessor">#undef __P</span>00104 <span class="preprocessor"></span><span class="preprocessor">#if (defined(PROTOTYPES) || defined(__STDC__) || defined(__cplusplus) )</span>00105 <span class="preprocessor"></span><span class="preprocessor"># define __P(protos) protos</span>00106 <span class="preprocessor"></span><span class="preprocessor">#else</span>00107 <span class="preprocessor"></span><span class="preprocessor"># define __P(protos) ()</span>00108 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00109 <span class="preprocessor"></span>00110 00111 00112 <span class="comment">/*</span>00113 <span class="comment"> * @def CONST</span>00114 <span class="comment"> * Used to define constants.</span>00115 <span class="comment"> *</span>00116 <span class="comment"> * For ANSI C compilers this expands to const, for others its an empty definition.</span>00117 <span class="comment"> * @note AC_C_CONST defines const empty if it is not supported.</span>00118 <span class="comment"> */</span>00119 <span class="preprocessor">#undef CONST</span>00120 <span class="preprocessor"></span>00121 <span class="preprocessor">#ifndef const</span>00122 <span class="preprocessor"></span><span class="preprocessor">#  if (defined(__STDC__) || defined(PROTOTYPES) || defined(__cplusplus))</span>00123 <span class="preprocessor"></span><span class="preprocessor">#    define CONST const</span>00124 <span class="preprocessor"></span><span class="preprocessor">#  else</span>00125 <span class="preprocessor"></span><span class="preprocessor">#    define CONST</span>00126 <span class="preprocessor"></span><span class="preprocessor">#  endif</span>00127 <span class="preprocessor"></span><span class="preprocessor">#else</span>00128 <span class="preprocessor"></span><span class="preprocessor">#  define CONST</span>00129 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00130 <span class="preprocessor"></span>00131 00132 00146 <span class="keyword">enum</span> <a class="code" href="group__constants.html#ga3">sqlo_status_codes</a> {00147   <a class="code" href="group__constants.html#gga3a25">SQLO_SUCCESS</a>             = 0,   <a name="l00148"></a><a class="code" href="group__constants.html#ga3">00148</a>   <a class="code" href="group__constants.html#gga3a26">SQLO_ERROR</a>               = -1,      00149   <a class="code" href="group__constants.html#gga3a27">SQLO_INVALID_HANDLE</a>      = -2,                  00150   <a class="code" href="group__constants.html#gga3a28">SQLO_STILL_EXECUTING</a>     = -3123,              00151   <a class="code" href="group__constants.html#gga3a29">SQLO_CONTINUE</a>            = -24200,                    00152   <a class="code" href="group__constants.html#gga3a30">SQLO_SUCCESS_WITH_INFO</a>   = 1,                00153   <a class="code" href="group__constants.html#gga3a31">SQLO_NEED_DATA</a>           = 99,                       00154   <a class="code" href="group__constants.html#gga3a32">SQLO_NO_DATA</a>             = 100                         00155 };00156 00157 00158 00165 <span class="keyword">enum</span> <a class="code" href="group__constants.html#ga4">sqlo_error_codes</a> {00166   <a class="code" href="group__constants.html#gga4a33">SQLO_ERROR_BASE</a>          = -30000,     <a name="l00167"></a><a class="code" href="group__constants.html#ga4">00167</a>   <a class="code" href="group__constants.html#gga4a34">SQLO_INVALID_DB_HANDLE</a>   = (<a class="code" href="group__constants.html#gga4a33">SQLO_ERROR_BASE</a> - 1),      00168   <a class="code" href="group__constants.html#gga4a35">SQLO_ERRMALLOC</a>           = (<a class="code" href="group__constants.html#gga4a33">SQLO_ERROR_BASE</a> - 2),  00169   <a class="code" href="group__constants.html#gga4a36">SQLO_INVALID_STMT_HANDLE</a> = (<a class="code" href="group__constants.html#gga4a33">SQLO_ERROR_BASE</a> - 3), 00170   <a class="code" href="group__constants.html#gga4a37">SQLO_STMT_NOT_OPENED</a>     = (<a class="code" href="group__constants.html#gga4a33">SQLO_ERROR_BASE</a> - 4), 00172   <a class="code" href="group__constants.html#gga4a38">SQLO_INVALID_STMT_TYPE</a>   = (<a class="code" href="group__constants.html#gga4a33">SQLO_ERROR_BASE</a> - 5), 00174   <a class="code" href="group__constants.html#gga4a39">SQLO_STMT_NOT_PARSED</a>     = (<a class="code" href="group__constants.html#gga4a33">SQLO_ERROR_BASE</a> - 6), 00176   <a class="code" href="group__constants.html#gga4a40">SQLO_INVALID_OCI_HANDLE_TYPE</a> = (<a class="code" href="group__constants.html#gga4a33">SQLO_ERROR_BASE</a> - 7), 00178   <a class="code" href="group__constants.html#gga4a41">SQLO_MALFORMED_VERSION_STR</a> = (<a class="code" href="group__constants.html#gga4a33">SQLO_ERROR_BASE</a> - 8), 00180   <a class="code" href="group__constants.html#gga4a42">SQLO_WRONG_VERSION</a>       = (<a class="code" href="group__constants.html#gga4a33">SQLO_ERROR_BASE</a> - 9), 00182   <a class="code" href="group__constants.html#gga4a43">SQLO_INVALID_COLPOS</a>      = (<a class="code" href="group__constants.html#gga4a33">SQLO_ERROR_BASE</a> - 10), 00183   <a class="code" href="group__constants.html#gga4a44">SQLO_INVALID_SQL</a>         = (<a class="code" href="group__constants.html#gga4a33">SQLO_ERROR_BASE</a> -11) 00184 };00185 00186 00187 00192 <span class="keyword">enum</span> <a class="code" href="group__constants.html#ga5">sqlo_constants</a> {00193   <a class="code" href="group__constants.html#gga5a45">SQLO_OFF</a>                 =  0, <a name="l00194"></a><a class="code" href="group__constants.html#ga5">00194</a>   <a class="code" href="group__constants.html#gga5a46">SQLO_ON</a>                  =  1, 00195   <a class="code" href="group__constants.html#gga5a47">SQLO_NULL_IND</a>            = -1, 00196   <a class="code" href="group__constants.html#gga5a48">SQLO_NOT_NULL_IND</a>        =  0, 00197   <a class="code" href="group__constants.html#gga5a49">SQLO_STH_INIT</a>            = -1, 00200   <span class="comment">/* constants for piece operations (lob writes). */</span>00201   <a class="code" href="group__constants.html#gga5a50">SQLO_ONE_PIECE</a>           = 0, 00203   <a class="code" href="group__constants.html#gga5a51">SQLO_FIRST_PIECE</a>         = 1, 00205   <a class="code" href="group__constants.html#gga5a52">SQLO_NEXT_PIECE</a>          = 2, 00207   <a class="code" href="group__constants.html#gga5a53">SQLO_LAST_PIECE</a>          = 3 00210 };00211 00212 00213 00222 <span class="keyword">enum</span> <a class="code" href="group__constants.html#ga6">sqlo_data_types</a> {00223   <a class="code" href="group__constants.html#gga6a54">SQLOT_CHR</a>  = 1,                      <a name="l00224"></a><a class="code" href="group__constants.html#ga6">00224</a>   <a class="code" href="group__constants.html#gga6a55">SQLOT_NUM</a>  = 2,                        00225   <a class="code" href="group__constants.html#gga6a56">SQLOT_INT</a>  = 3,                               00226   <a class="code" href="group__constants.html#gga6a57">SQLOT_FLT</a>  = 4,                 00227   <a class="code" href="group__constants.html#gga6a58">SQLOT_STR</a>  = 5,                              00228   <a class="code" href="group__constants.html#gga6a59">SQLOT_VNU</a>  = 6,                      00229   <a class="code" href="group__constants.html#gga6a60">SQLOT_PDN</a>  = 7,                00230   <a class="code" href="group__constants.html#gga6a61">SQLOT_LNG</a>  = 8,                                                00231   <a class="code" href="group__constants.html#gga6a62">SQLOT_VCS</a>  = 9,                           00232   <a class="code" href="group__constants.html#gga6a63">SQLOT_NON</a>  = 10,                    00233   <a class="code" href="group__constants.html#gga6a64">SQLOT_RID</a>  = 11,                                              00234   <a class="code" href="group__constants.html#gga6a65">SQLOT_DAT</a>  = 12,                              00235   <a class="code" href="group__constants.html#gga6a66">SQLOT_VBI</a>  = 15,                               00236   <a class="code" href="group__constants.html#gga6a67">SQLOT_BIN</a>  = 23,                                00237   <a class="code" href="group__constants.html#gga6a68">SQLOT_LBI</a>  = 24,                                        00238   <a class="code" href="group__constants.html#gga6a69">SQLOT_UIN</a>  = 68,                                   00239   <a class="code" href="group__constants.html#gga6a70">SQLOT_SLS</a>  = 91,                      00240   <a class="code" href="group__constants.html#gga6a71">SQLOT_LVC</a>  = 94,                                00241   <a class="code" href="group__constants.html#gga6a72">SQLOT_LVB</a>  = 95,                                 00242   <a class="code" href="group__constants.html#gga6a73">SQLOT_AFC</a>  = 96,                                    00243   <a class="code" href="group__constants.html#gga6a74">SQLOT_AVC</a>  = 97,                                      00244   <a class="code" href="group__constants.html#gga6a75">SQLOT_CUR</a>  = 102,                                      00245   <a class="code" href="group__constants.html#gga6a76">SQLOT_RDD</a>  = 104,                                  00246   <a class="code" href="group__constants.html#gga6a77">SQLOT_LAB</a>  = 105,                                        00247   <a class="code" href="group__constants.html#gga6a78">SQLOT_OSL</a>  = 106,                                      

⌨️ 快捷键说明

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