/usr/share/doc/cl-sql/html/add-sql-stream.html is in cl-sql 6.7.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>ADD-SQL-STREAM</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="CLSQL Users' Guide" /><link rel="up" href="ref-recording.html" title="SQL I/O Recording" /><link rel="prev" href="sql-stream.html" title="SQL-STREAM" /><link rel="next" href="delete-sql-stream.html" title="DELETE-SQL-STREAM" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">ADD-SQL-STREAM</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="sql-stream.html">Prev</a> </td><th width="60%" align="center">SQL I/O Recording</th><td width="20%" align="right"> <a accesskey="n" href="delete-sql-stream.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="add-sql-stream"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ADD-SQL-STREAM — Add a component to the broadcast streams used for recording SQL commands or results.<strong>Function</strong></p></div><div class="refsect1"><a id="idp76825888"></a><h2>Syntax</h2><pre class="synopsis">
<code class="function">add-sql-stream</code> <em class="replaceable"><code>stream</code></em> &key <em class="replaceable"><code>type</code></em> <em class="replaceable"><code>database</code></em> => <span class="returnvalue">result</span></pre></div><div class="refsect1"><a id="idp76829856"></a><h2>Arguments and Values</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>stream</code></em></span></dt><dd><p>
A stream or <code class="constant">T</code>.
</p></dd><dt><span class="term"><em class="parameter"><code>type</code></em></span></dt><dd><p>
One of the following keyword symbols:
<span class="symbol">:commands</span>, <span class="symbol">:results</span> or
<span class="symbol">:both</span>, defaulting to
<span class="symbol">:commands</span>.
</p></dd><dt><span class="term"><em class="parameter"><code>database</code></em></span></dt><dd><p>A
<a class="glossterm" href="glossary.html#gloss-database-object"><em class="glossterm">database
object</em></a>. This will default to
<span class="symbol">*default-database*</span>.</p></dd><dt><span class="term"><em class="parameter"><code>result</code></em></span></dt><dd><p>
The added stream.
</p></dd></dl></div></div><div class="refsect1"><a id="idp76139696"></a><h2>Description</h2><p>Adds the supplied stream <em class="parameter"><code>stream</code></em> (or
<code class="constant">T</code> for <span class="symbol">*standard-output*</span>) as a component of
the recording broadcast stream for the SQL recording type
specified by <em class="parameter"><code>type</code></em> on
<em class="parameter"><code>database</code></em> which defaults to
<span class="symbol">*default-database*</span>. <em class="parameter"><code>type</code></em>
must be one of <span class="symbol">:commands</span>,
<span class="symbol">:results</span>, or <span class="symbol">:both</span>, defaulting
to <span class="symbol">:commands</span>, depending on whether the stream
is to be added for recording SQL commands, results or both.
</p></div><div class="refsect1"><a id="idp76147264"></a><h2>Examples</h2><pre class="screen">
(start-sql-recording :type :commands)
=>
(with-output-to-string (s)
(add-sql-stream s :type :commands)
(print-query [select [emplid] [first-name] [last-name] [email] :from [employee]]
:stream s))
;; 2004-07-02 17:38:45 dent/test/dent => SELECT emplid,first_name,last_name,email FROM employee
=>
";; 2004-07-02 17:38:45 dent/test/dent => SELECT emplid,first_name,last_name,email FROM employee
1 Vladimir Lenin lenin@soviet.org
2 Josef Stalin stalin@soviet.org
3 Leon Trotsky trotsky@soviet.org
4 Nikita Kruschev kruschev@soviet.org
5 Leonid Brezhnev brezhnev@soviet.org
6 Yuri Andropov andropov@soviet.org
7 Konstantin Chernenko chernenko@soviet.org
8 Mikhail Gorbachev gorbachev@soviet.org
9 Boris Yeltsin yeltsin@soviet.org
10 Vladimir Putin putin@soviet.org "
</pre></div><div class="refsect1"><a id="idp76149744"></a><h2>Side Effects</h2><p>
The specified broadcast stream(s) associated with
<em class="parameter"><code>database</code></em> are modified.
</p></div><div class="refsect1"><a id="idp76151776"></a><h2>Affected by</h2><p>
None.
</p></div><div class="refsect1"><a id="idp76153120"></a><h2>Exceptional Situations</h2><p>
None.
</p></div><div class="refsect1"><a id="idp76154464"></a><h2>See Also</h2><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="link" href="start-sql-recording.html" title="START-SQL-RECORDING"><code class="function">start-sql-recording</code></a></td></tr><tr><td><a class="link" href="sql-stream.html" title="SQL-STREAM"><code class="function">sql-stream</code></a></td></tr><tr><td><a class="link" href="delete-sql-stream.html" title="DELETE-SQL-STREAM"><code class="function">delete-sql-stream</code></a></td></tr><tr><td><a class="link" href="list-sql-streams.html" title="LIST-SQL-STREAMS"><code class="function">list-sql-streams</code></a></td></tr></table></div><div class="refsect1"><a id="idp76161072"></a><h2>Notes</h2><p>
None.
</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="sql-stream.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ref-recording.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="delete-sql-stream.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SQL-STREAM </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> DELETE-SQL-STREAM</td></tr></table></div></body></html>
|