Debian Codegraph @

doc/html/pgtcl-pgsendqueryprepared.html

raw symbols SCIP
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_sendquery_prepared</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" href="pgtcl-pgsendquery.html">
12 <link rel="NEXT" title="pg_getresult" href="pgtcl-pggetresult.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-pgsendquery.html" accesskey="P">Prev</a></td>
23 <td width="10%" align="left" valign="top"><a href="pgtcl-pgsendquery.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-pggetresult.html">Fast Forward</a></td>
26 <td width="10%" align="right" valign="top"><a href="pgtcl-pggetresult.html" accesskey="N">Next</a></td>
27 </tr>
28 </table>
29 <hr align="left" width="100%"></div>
30 <h1><a name="PGTCL-PGSENDQUERYPREPARED" id="PGTCL-PGSENDQUERYPREPARED"></a>pg_sendquery_prepared</h1>
31 <div class="REFNAMEDIV"><a name="AEN1559" id="AEN1559"></a>
32 <h2>Name</h2>
33 pg_sendquery_prepared&nbsp;--&nbsp;send a request to execute a prepared statement to the backend connection, without waiting for a result<a name="IX-PGTCL-PGSENDQUERYPREPARED-2" id="IX-PGTCL-PGSENDQUERYPREPARED-2"></a></div>
34 <div class="REFSYNOPSISDIV"><a name="AEN1564" id="AEN1564"></a>
35 <h2>Synopsis</h2>
36 <pre class="SYNOPSIS">pg_sendquery_prepared <code class="PARAMETER">conn</code> <code class="PARAMETER">statementName</code> ?<span class="OPTIONAL"><code class="PARAMETER">args</code></span>?</pre></div>
37 <div class="REFSECT1"><a name="AEN1570" id="AEN1570"></a>
38 <h2>Description</h2>
39 <p><code class="FUNCTION">pg_sendquery_prepared</code> submits a command to the <span class="PRODUCTNAME">PostgreSQL</span> server. This function works like <code class="FUNCTION">pg_exec</code>, except that it does not return a result. Rather, the command is issued to the backend asynchronously.</p>
40 <p>The result is either an error message or nothing. An empty return indicates that the command was dispatched to the backend.</p>
41 </div>
42 <div class="REFSECT1"><a name="AEN1577" id="AEN1577"></a>
43 <h2>Arguments</h2>
44 <div class="VARIABLELIST">
45 <dl>
46 <dt><code class="PARAMETER">conn</code></dt>
47 <dd>
48 <p>The handle of the connection on which to execute the command.</p>
49 </dd>
50 <dt><code class="PARAMETER">statementName</code></dt>
51 <dd>
52 <p>The name of the prepared SQL statement to execute asynchronously.</p>
53 </dd>
54 <dt><code class="PARAMETER">args</code></dt>
55 <dd>
56 <p><code class="PARAMETER">args</code> consists of zero or more optional values that can be inserted, unquoted, into the SQL statement using $-style substitution.</p>
57 </dd>
58 </dl>
59 </div>
60 </div>
61 <div class="REFSECT1"><a name="AEN1596" id="AEN1596"></a>
62 <h2>Return Value</h2>
63 <p>A Tcl error will be returned if <span class="APPLICATION">pgtcl</span> was unable to issue the command. Otherwise, an empty string will be return. It is up to the developer to use <code class="FUNCTION">pg_getresult</code> to obtain results from commands issued with <code class="FUNCTION">pg_sendquery</code>.</p>
64 </div>
65 <div class="NAVFOOTER">
66 <hr align="left" width="100%">
67 <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
68 <tr>
69 <td width="33%" align="left" valign="top"><a href="pgtcl-pgsendquery.html" accesskey="P">Prev</a></td>
70 <td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td>
71 <td width="33%" align="right" valign="top"><a href="pgtcl-pggetresult.html" accesskey="N">Next</a></td>
72 </tr>
73 <tr>
74 <td width="33%" align="left" valign="top">pg_sendquery</td>
75 <td width="34%" align="center" valign="top"><a href="libpgtcl-ref.html" accesskey="U">Up</a></td>
76 <td width="33%" align="right" valign="top">pg_getresult</td>
77 </tr>
78 </table>
79 </div>
80 </body>
81 </html>