/usr/share/doc/cl-sql/html/drop-sequence.html is in cl-sql 6.5.0-1.
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 | <?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>DROP-SEQUENCE</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-fddl.html" title="Functional Data Definition Language (FDDL)" /><link rel="prev" href="create-sequence.html" title="CREATE-SEQUENCE" /><link rel="next" href="list-sequences.html" title="LIST-SEQUENCES" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">DROP-SEQUENCE</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="create-sequence.html">Prev</a> </td><th width="60%" align="center">Functional Data Definition Language (FDDL)</th><td width="20%" align="right"> <a accesskey="n" href="list-sequences.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="drop-sequence"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>DROP-SEQUENCE — Drop a database sequence.<strong>Function</strong></p></div><div class="refsect1"><a id="idp63172000"></a><h2>Syntax</h2><pre class="synopsis">
<code class="function">drop-sequence</code> <em class="replaceable"><code>name</code></em> &key <em class="replaceable"><code>if-does-not-exist</code></em> <em class="replaceable"><code>database</code></em> => <span class="returnvalue"></span></pre></div><div class="refsect1"><a id="idp63175296"></a><h2>Arguments and Values</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>name</code></em></span></dt><dd><p>
The name of the sequence as a string, symbol or SQL expression.
</p></dd><dt><span class="term"><em class="parameter"><code>database</code></em></span></dt><dd><p>
A database object which defaults to
<span class="symbol">*default-database*</span>.
</p></dd><dt><span class="term"><em class="parameter"><code>if-does-not-exist</code></em></span></dt><dd><p>
A symbol. Meaningful values are <span class="symbol">:ignore</span>
or <span class="symbol">:error</span> (the default).
</p></dd></dl></div></div><div class="refsect1"><a id="idp63183504"></a><h2>Description</h2><p>Drops the sequence called <em class="parameter"><code>name</code></em> from
<em class="parameter"><code>database</code></em> which defaults to
<span class="symbol">*default-database*</span>. If the sequence does not
exist and <em class="parameter"><code>if-does-not-exist</code></em> is
<span class="symbol">:ignore</span> then
<em class="parameter"><code>drop-sequence</code></em> returns <code class="constant">NIL</code> whereas an
error is signalled if <em class="parameter"><code>if-does-not-exist</code></em>
is <span class="symbol">:error</span>.
</p></div><div class="refsect1"><a id="idp63189312"></a><h2>Examples</h2><pre class="screen">
(sequence-exists-p [foo])
=> T
(drop-sequence [foo] :if-does-not-exist :ignore)
=>
(sequence-exists-p [foo])
=> NIL
</pre></div><div class="refsect1"><a id="idp63190848"></a><h2>Side Effects</h2><p>
A sequence is dropped from <em class="parameter"><code>database</code></em>.
</p></div><div class="refsect1"><a id="idp63192624"></a><h2>Affected by</h2><p>
<span class="symbol">*default-database*</span>
</p></div><div class="refsect1"><a id="idp63194160"></a><h2>Exceptional Situations</h2><p>
An error is signalled if <em class="parameter"><code>name</code></em> is not a
string, symbol or SQL expression. An error of type
<span class="symbol">sql-database-data-error</span> is signalled if
<em class="parameter"><code>name</code></em> doesn't exist and
<em class="parameter"><code>if-does-not-exist</code></em> has a value of
<span class="symbol">:error</span>.
</p></div><div class="refsect1"><a id="idp63198048"></a><h2>See Also</h2><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="link" href="create-sequence.html" title="CREATE-SEQUENCE"><code class="function">create-sequence</code></a></td></tr><tr><td><a class="link" href="list-sequences.html" title="LIST-SEQUENCES"><code class="function">list-sequences</code></a></td></tr><tr><td><a class="link" href="sequence-exists-p.html" title="SEQUENCE-EXISTS-P"><code class="function">sequence-exists-p</code></a></td></tr><tr><td><a class="link" href="sequence-last.html" title="SEQUENCE-LAST"><code class="function">sequence-last</code></a></td></tr><tr><td><a class="link" href="sequence-next.html" title="SEQUENCE-NEXT"><code class="function">sequence-next</code></a></td></tr><tr><td><a class="link" href="set-sequence-position.html" title="SET-SEQUENCE-POSITION"><code class="function">set-sequence-position</code></a></td></tr></table></div><div class="refsect1"><a id="idp63206160"></a><h2>Notes</h2><p>
<code class="function">drop-sequence</code> is a <span class="application"><span class="emphasis"><em>CLSQL</em></span></span> extension.
</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="create-sequence.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ref-fddl.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="list-sequences.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">CREATE-SEQUENCE </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> LIST-SEQUENCES</td></tr></table></div></body></html>
|