📄 group__g__connpool.html
字号:
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Connection pool handle on succes or NULL on failure </dd></dl><p>Definition at line <a class="el" href="connpool_8c-source.html#l00110">110</a> of file <a class="el" href="connpool_8c-source.html">connpool.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00196">OCI_ConnPool::cons</a>, <a class="el" href="ocilib__types_8h-source.html#l00204">OCI_ConnPool::db</a>, <a class="el" href="ocilib__types_8h-source.html#l00202">OCI_ConnPool::err</a>, <a class="el" href="ocilib__types_8h-source.html#l00198">OCI_ConnPool::handle</a>, <a class="el" href="ocilib__types_8h-source.html#l00211">OCI_ConnPool::incr</a>, <a class="el" href="ocilib__types_8h-source.html#l00210">OCI_ConnPool::max</a>, <a class="el" href="ocilib__types_8h-source.html#l00209">OCI_ConnPool::min</a>, <a class="el" href="ocilib__types_8h-source.html#l00208">OCI_ConnPool::mode</a>, <a class="el" href="ocilib__types_8h-source.html#l00207">OCI_ConnPool::mutex</a>, <a class="el" href="ocilib__types_8h-source.html#l00203">OCI_ConnPool::name</a>, <a class="el" href="group__g__connpool.html#g4bca447fc21e09cb1cc4cc3ec2cfcde1">OCI_ConnPoolFree()</a>, <a class="el" href="ocilib__types_8h-source.html#l00206">OCI_ConnPool::pwd</a>, and <a class="el" href="ocilib__types_8h-source.html#l00205">OCI_ConnPool::user</a>.</p></div></div><p><a class="anchor" name="g4bca447fc21e09cb1cc4cc3ec2cfcde1"></a><!-- doxytag: member="ocilib.h::OCI_ConnPoolFree" ref="g4bca447fc21e09cb1cc4cc3ec2cfcde1" args="(OCI_ConnPool *pool)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_ConnPoolFree </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___conn_pool.html">OCI_ConnPool</a> * </td> <td class="paramname"> <em>pool</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Destroy a Connection pool object. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pool</em> </td><td>- Connection pool handle</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="connpool_8c-source.html#l00270">270</a> of file <a class="el" href="connpool_8c-source.html">connpool.c</a>.</p><p>Referenced by <a class="el" href="group__g__connpool.html#g55ba9db7940b0be1514ab3010c6a9e81">OCI_ConnPoolCreate()</a>.</p></div></div><p><a class="anchor" name="ga2cbd17675866a81848c5cd586dd43b6"></a><!-- doxytag: member="ocilib.h::OCI_ConnPoolGetBusyCount" ref="ga2cbd17675866a81848c5cd586dd43b6" args="(OCI_ConnPool *pool)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT unsigned int OCI_API OCI_ConnPoolGetBusyCount </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___conn_pool.html">OCI_ConnPool</a> * </td> <td class="paramname"> <em>pool</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Return the current number of busy connections. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pool</em> </td><td>- Connection pool handle </td></tr> </table></dl><p>Definition at line <a class="el" href="connpool_8c-source.html#l00472">472</a> of file <a class="el" href="connpool_8c-source.html">connpool.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00202">OCI_ConnPool::err</a>, <a class="el" href="ocilib__types_8h-source.html#l00198">OCI_ConnPool::handle</a>, and <a class="el" href="ocilib__types_8h-source.html#l00212">OCI_ConnPool::nb_busy</a>.</p></div></div><p><a class="anchor" name="g774ce156deb3477c83237a633b6538f6"></a><!-- doxytag: member="ocilib.h::OCI_ConnPoolGetConnection" ref="g774ce156deb3477c83237a633b6538f6" args="(OCI_ConnPool *pool)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT <a class="el" href="struct_o_c_i___connection.html">OCI_Connection</a>* OCI_API OCI_ConnPoolGetConnection </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___conn_pool.html">OCI_ConnPool</a> * </td> <td class="paramname"> <em>pool</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Get a connection from the pool. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pool</em> </td><td>- Connection pool handle</td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd></dd></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Connection handle otherwise NULL on failure </dd></dl><p>Definition at line <a class="el" href="connpool_8c-source.html#l00291">291</a> of file <a class="el" href="connpool_8c-source.html">connpool.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00196">OCI_ConnPool::cons</a>, <a class="el" href="ocilib__types_8h-source.html#l00241">OCI_Connection::cstate</a>, <a class="el" href="ocilib__types_8h-source.html#l00204">OCI_ConnPool::db</a>, <a class="el" href="ocilib__types_8h-source.html#l00211">OCI_ConnPool::incr</a>, <a class="el" href="ocilib__types_8h-source.html#l00210">OCI_ConnPool::max</a>, <a class="el" href="ocilib__types_8h-source.html#l00208">OCI_ConnPool::mode</a>, <a class="el" href="ocilib__types_8h-source.html#l00207">OCI_ConnPool::mutex</a>, <a class="el" href="ocilib__types_8h-source.html#l00213">OCI_ConnPool::nb_opened</a>, <a class="el" href="group__g__connect.html#gc3fe655e96074adb119908be4650a4c9">OCI_ConnectionFree()</a>, <a class="el" href="group__g__threads.html#g88a05b41e24b3bd1789688702cc6f4f4">OCI_MutexAcquire()</a>, <a class="el" href="group__g__threads.html#g366f287cf828533617faf0785181de7f">OCI_MutexRelease()</a>, <a class="el" href="ocilib__types_8h-source.html#l00206">OCI_ConnPool::pwd</a>, and <a class="el" href="ocilib__types_8h-source.html#l00205">OCI_ConnPool::user</a>.</p></div></div><p><a class="anchor" name="gc8f2a7bd2d053c9f774eb86a18533355"></a><!-- doxytag: member="ocilib.h::OCI_ConnPoolGetIncrement" ref="gc8f2a7bd2d053c9f774eb86a18533355" args="(OCI_ConnPool *pool)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT unsigned int OCI_API OCI_ConnPoolGetIncrement </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___conn_pool.html">OCI_ConnPool</a> * </td> <td class="paramname"> <em>pool</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Return the increment for connections to be opened to the database when the pool is not full. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pool</em> </td><td>- Connection pool handle </td></tr> </table></dl><p>Definition at line <a class="el" href="connpool_8c-source.html#l00570">570</a> of file <a class="el" href="connpool_8c-source.html">connpool.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00211">OCI_ConnPool::incr</a>.</p></div></div><p><a class="anchor" name="g0dff250d296fe1060a576e9bdb43ffb0"></a><!-- doxytag: member="ocilib.h::OCI_ConnPoolGetlGetNoWait" ref="g0dff250d296fe1060a576e9bdb43ffb0" args="(OCI_ConnPool *pool)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_ConnPoolGetlGetNoWait </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___conn_pool.html">OCI_ConnPool</a> * </td> <td class="paramname"> <em>pool</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Get the waiing mode used when no more connections are available from the pool. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pool</em> </td><td>- Connection pool handle</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd><ul><li>FALSE to wait for an available connection if the pool is saturated</li><li>TRUE to not wait for an available connection </li></ul></dd></dl><p>Definition at line <a class="el" href="connpool_8c-source.html#l00423">423</a> of file <a class="el" href="connpool_8c-source.html">connpool.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00215">OCI_ConnPool::nowait</a>.</p></div></div><p><a class="anchor" name="g24a3b2eaca171d4dbc3d40e1dc0229ca"></a><!-- doxytag: member="ocilib.h::OCI_ConnPoolGetMax" ref="g24a3b2eaca171d4dbc3d40e1dc0229ca" args="(OCI_ConnPool *pool)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT unsigned int OCI_API OCI_ConnPoolGetMax </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___conn_pool.html">OCI_ConnPool</a> * </td> <td class="paramname"> <em>pool</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Return the maximum number of connections that can be opened to the database. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pool</em> </td><td>- Connection pool handle </td></tr> </table></dl><p>Definition at line <a class="el" href="connpool_8c-source.html#l00557">557</a> of file <a class="el" href="connpool_8c-source.html">connpool.c</a>.</p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -