| 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>pgtcl Command Reference</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 - Tcl Binding Library" href="libpgtcl.html"> |
| 11 | <link rel="PREVIOUS" title="Loading pgtcl into an Application" href="libpgtcl-loading.html"> |
| 12 | <link rel="NEXT" title="pg_connect" href="pgtcl-pgconnect.html"> |
| 13 | <link rel="STYLESHEET" type="text/css" href="stylesheet.css"> |
| 14 | </head> |
| 15 | <body class="SECT1"> |
| 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="libpgtcl-loading.html" accesskey="P">Prev</a></td> |
| 23 | <td width="10%" align="left" valign="top"><a href="libpgtcl.html">Fast Backward</a></td> |
| 24 | <td width="60%" align="center" valign="bottom">Chapter 1. <span class="APPLICATION">pgtcl</span> - Tcl Binding Library</td> |
| 25 | <td width="10%" align="right" valign="top"><a href="libpgtcl.html">Fast Forward</a></td> |
| 26 | <td width="10%" align="right" valign="top"><a href="pgtcl-pgconnect.html" accesskey="N">Next</a></td> |
| 27 | </tr> |
| 28 | </table> |
| 29 | <hr align="left" width="100%"></div> |
| 30 | <div class="SECT1"> |
| 31 | <h1 class="SECT1"><a name="LIBPGTCL-REF" id="LIBPGTCL-REF">1.3. <span class="APPLICATION">pgtcl</span> Command Reference</a></h1> |
| 32 | <div class="TOC"> |
| 33 | <dl> |
| 34 | <dt><b>Table of Contents</b></dt> |
| 35 | <dt><a href="pgtcl-pgconnect.html">pg_connect</a> -- open a connection to the server</dt> |
| 36 | <dt><a href="pgtcl-pgconninfo.html">pg_dbinfo</a> -- returns data about the connection</dt> |
| 37 | <dt><a href="pgtcl-pgdisconnect.html">pg_disconnect</a> -- close a connection to the server</dt> |
| 38 | <dt><a href="pgtcl-pgconndefaults.html">pg_conndefaults</a> -- get connection options and their defaults</dt> |
| 39 | <dt><a href="pgtcl-pgexec.html">pg_exec</a> -- send a command to the server</dt> |
| 40 | <dt><a href="pgtcl-pgexecprepared.html">pg_exec_prepared</a> -- send a request to execute a prepared SQL statement to the server</dt> |
| 41 | <dt><a href="pgtcl-pgresult.html">pg_result</a> -- get information about a command result</dt> |
| 42 | <dt><a href="pgtcl-pgselect.html">pg_select</a> -- loop over the result of a query</dt> |
| 43 | <dt><a href="pgtcl-pgexecute.html">pg_execute</a> -- send a query and optionally loop over the results</dt> |
| 44 | <dt><a href="pgtcl-pglisten.html">pg_listen</a> -- set or change a callback for asynchronous notification messages</dt> |
| 45 | <dt><a href="pgtcl-pgon-connection-loss.html">pg_on_connection_loss</a> -- set or change a callback for unexpected connection loss</dt> |
| 46 | <dt><a href="pgtcl-pgsendquery.html">pg_sendquery</a> -- send a query string to the backend connection without waiting for a result</dt> |
| 47 | <dt><a href="pgtcl-pgsendqueryprepared.html">pg_sendquery_prepared</a> -- send a request to execute a prepared statement to the backend connection, without waiting for a result</dt> |
| 48 | <dt><a href="pgtcl-pggetresult.html">pg_getresult</a> -- process asychronous results</dt> |
| 49 | <dt><a href="pgtcl-pgisbusy.html">pg_isbusy</a> -- see if a query is busy</dt> |
| 50 | <dt><a href="pgtcl-pgblocking.html">pg_blocking</a> -- see or set whether or not a connection is set to blocking or nonblocking</dt> |
| 51 | <dt><a href="pgtcl-pgcancelrequest.html">pg_cancelrequest</a> -- request that <span class="PRODUCTNAME">PostgreSQL</span> abandon processing of the current command</dt> |
| 52 | <dt><a href="pgtcl-nullvaluestring.html">pg_null_value_string</a> -- define a value to be returned for NULL fields distinct from the default value of an empty string.</dt> |
| 53 | <dt><a href="pgtcl-quote.html">pg_quote</a> -- escapes a string for inclusion into SQL statements</dt> |
| 54 | <dt><a href="pgtcl-pgescape-string.html">pg_escape_string</a> -- escapes a string for inclusion into SQL statements. This is the same as pg_quote. It was added for consistency.</dt> |
| 55 | <dt><a href="pgtcl-pgescape-bytea.html">pg_escape_bytea</a> -- escapes a binary string for inclusion into SQL statements.</dt> |
| 56 | <dt><a href="pgtcl-pgunescape-bytea.html">pg_unescape_bytea</a> -- unescapes a binary string.</dt> |
| 57 | <dt><a href="pgtcl-pglocreat.html">pg_lo_creat</a> -- create a large object</dt> |
| 58 | <dt><a href="pgtcl-pgloopen.html">pg_lo_open</a> -- open a large object</dt> |
| 59 | <dt><a href="pgtcl-pgloclose.html">pg_lo_close</a> -- close a large object</dt> |
| 60 | <dt><a href="pgtcl-pgloread.html">pg_lo_read</a> -- read from a large object</dt> |
| 61 | <dt><a href="pgtcl-pglowrite.html">pg_lo_write</a> -- write to a large object</dt> |
| 62 | <dt><a href="pgtcl-pglolseek.html">pg_lo_lseek</a> -- seek to a position of a large object</dt> |
| 63 | <dt><a href="pgtcl-pglotell.html">pg_lo_tell</a> -- return the current seek position of a large object</dt> |
| 64 | <dt><a href="pgtcl-pgtruncate.html">pg_lo_truncate</a> -- Truncate a large object to a given length</dt> |
| 65 | <dt><a href="pgtcl-pglounlink.html">pg_lo_unlink</a> -- delete a large object</dt> |
| 66 | <dt><a href="pgtcl-pgloimport.html">pg_lo_import</a> -- import a large object from a file</dt> |
| 67 | <dt><a href="pgtcl-pgloexport.html">pg_lo_export</a> -- export a large object to a file</dt> |
| 68 | <dt><a href="pgtcl-pgsqlite.html">pg_sqlite</a> -- implements a bridge between PostgreSQL and Sqlite3 using the Pgtcl and sqlite3 packages.</dt> |
| 69 | <dt><a href="pgtcl-pgcopycomplete.html">pg_copy_complete</a> -- Completes a <tt class="COMMAND">COPY FROM stdin</tt> operation</dt> |
| 70 | <dt><a href="pgtcl-pggetconnectionid.html">PgGetConnectionId</a> -- Provides access to the underlying <tt class="LITERAL">libpq</tt> SQL connection handle.</dt> |
| 71 | </dl> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div class="NAVFOOTER"> |
| 75 | <hr align="left" width="100%"> |
| 76 | <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0"> |
| 77 | <tr> |
| 78 | <td width="33%" align="left" valign="top"><a href="libpgtcl-loading.html" accesskey="P">Prev</a></td> |
| 79 | <td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td> |
| 80 | <td width="33%" align="right" valign="top"><a href="pgtcl-pgconnect.html" accesskey="N">Next</a></td> |
| 81 | </tr> |
| 82 | <tr> |
| 83 | <td width="33%" align="left" valign="top">Loading <span class="APPLICATION">pgtcl</span> into an Application</td> |
| 84 | <td width="34%" align="center" valign="top"><a href="libpgtcl.html" accesskey="U">Up</a></td> |
| 85 | <td width="33%" align="right" valign="top">pg_connect</td> |
| 86 | </tr> |
| 87 | </table> |
| 88 | </div> |
| 89 | </body> |
| 90 | </html> |