Debian Codegraph @

doc/html/pgtcl-pggetresult.html

raw
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5 <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.6.0">
6 <title>pg_getresult</title>
7 <meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.79">
8 <link rev="MADE" href="mailto:[email protected]">
9 <link rel="HOME" title="PostgreSQL Tcl Interface Documentation" href="index.html">
10 <link rel="UP" title="pgtcl Command Reference" href="libpgtcl-ref.html">
11 <link rel="PREVIOUS" title="pg_sendquery_prepared" href="pgtcl-pgsendqueryprepared.html">
12 <link rel="NEXT" title="pg_isbusy" href="pgtcl-pgisbusy.html">
13 <link rel="STYLESHEET" type="text/css" href="stylesheet.css">
14 </head>
15 <body class="REFENTRY">
16 <div class="NAVHEADER">
17 <table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
18 <tr>
19 <th colspan="5" align="center" valign="bottom">PostgreSQL Tcl Interface Documentation</th>
20 </tr>
21 <tr>
22 <td width="10%" align="left" valign="top"><a href="pgtcl-pgsendqueryprepared.html" accesskey="P">Prev</a></td>
23 <td width="10%" align="left" valign="top"><a href="pgtcl-pgsendqueryprepared.html">Fast Backward</a></td>
24 <td width="60%" align="center" valign="bottom"></td>
25 <td width="10%" align="right" valign="top"><a href="pgtcl-pgisbusy.html">Fast Forward</a></td>
26 <td width="10%" align="right" valign="top"><a href="pgtcl-pgisbusy.html" accesskey="N">Next</a></td>
27 </tr>
28 </table>
29 <hr align="left" width="100%"></div>
30 <h1><a name="PGTCL-PGGETRESULT" id="PGTCL-PGGETRESULT"></a>pg_getresult</h1>
31 <div class="REFNAMEDIV"><a name="AEN1605" id="AEN1605"></a>
32 <h2>Name</h2>
33 pg_getresult&nbsp;--&nbsp;process asychronous results<a name="IX-PGTCL-PGGETRESULT-2" id="IX-PGTCL-PGGETRESULT-2"></a></div>
34 <div class="REFSYNOPSISDIV"><a name="AEN1610" id="AEN1610"></a>
35 <h2>Synopsis</h2>
36 <pre class="SYNOPSIS">pg_getresult <code class="PARAMETER">conn</code></pre></div>
37 <div class="REFSECT1"><a name="AEN1613" id="AEN1613"></a>
38 <h2>Description</h2>
39 <p><code class="FUNCTION">pg_getresult</code> checks to see if any commands issued by <code class="FUNCTION">pg_sendquery</code> have completed.</p>
40 <p>This will return the same sort of result handle that <code class="FUNCTION">pg_exec</code> returns.</p>
41 <p>If there is no query currently being processed or all of the results have been obtained, <code class="FUNCTION">pg_getresult</code> returns nothing.</p>
42 </div>
43 <div class="REFSECT1"><a name="AEN1622" id="AEN1622"></a>
44 <h2>Arguments</h2>
45 <div class="VARIABLELIST">
46 <dl>
47 <dt><code class="PARAMETER">conn</code></dt>
48 <dd>
49 <p>The handle of a connection to the database to which asynchronous requests are being issued.</p>
50 </dd>
51 </dl>
52 </div>
53 </div>
54 <div class="REFSECT1"><a name="AEN1630" id="AEN1630"></a>
55 <h2>Return Value</h2>
56 <p>If a query result is available, a command result object is returned. This handle can be passed to <code class="FUNCTION">pg_result</code> to obtain the results of the command.</p>
57 <p>If there is no query currently being processed or all of the results have been obtained, <code class="FUNCTION">pg_getresult</code> returns nothing.</p>
58 </div>
59 <div class="NAVFOOTER">
60 <hr align="left" width="100%">
61 <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
62 <tr>
63 <td width="33%" align="left" valign="top"><a href="pgtcl-pgsendqueryprepared.html" accesskey="P">Prev</a></td>
64 <td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td>
65 <td width="33%" align="right" valign="top"><a href="pgtcl-pgisbusy.html" accesskey="N">Next</a></td>
66 </tr>
67 <tr>
68 <td width="33%" align="left" valign="top">pg_sendquery_prepared</td>
69 <td width="34%" align="center" valign="top"><a href="libpgtcl-ref.html" accesskey="U">Up</a></td>
70 <td width="33%" align="right" valign="top">pg_isbusy</td>
71 </tr>
72 </table>
73 </div>
74 </body>
75 </html>