/usr/share/doc/cl-sql/html/create-database.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 | <?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>CREATE-DATABASE</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-connect.html" title="Connection and Initialisation" /><link rel="prev" href="status.html" title="STATUS" /><link rel="next" href="destroy-database.html" title="DESTROY-DATABASE" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">CREATE-DATABASE</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="status.html">Prev</a> </td><th width="60%" align="center">Connection and Initialisation</th><td width="20%" align="right"> <a accesskey="n" href="destroy-database.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="create-database"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>CREATE-DATABASE — create a database<strong>Function</strong></p></div><div class="refsect1"><a id="idp73945936"></a><h2>Syntax</h2><pre class="synopsis"><code class="function">create-database</code> <em class="replaceable"><code>connection-spec</code></em> &key <em class="replaceable"><code>database-type</code></em> => <span class="returnvalue">success</span></pre></div><div class="refsect1"><a id="idp73948848"></a><h2>Arguments and Values</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>connection-spec</code></em></span></dt><dd><p>A connection specification</p></dd><dt><span class="term"><em class="parameter"><code>database-type</code></em></span></dt><dd><p>A database type specifier, i.e. a keyword.
This defaults to the value of
<span class="symbol">*default-database-type*</span></p></dd><dt><span class="term"><em class="parameter"><code>success</code></em></span></dt><dd><p>A boolean flag. If <code class="constant">T</code>, a new database was
successfully created.
</p></dd></dl></div></div><div class="refsect1"><a id="idp73956528"></a><h2>Description</h2><p>This function creates a database in the database system
specified by <em class="parameter"><code>database-type</code></em>.
</p></div><div class="refsect1"><a id="idp73958384"></a><h2>Examples</h2><pre class="screen">
(create-database '("localhost" "new" "dent" "dent") :database-type :mysql)
=> T
(create-database '("localhost" "new" "dent" "badpasswd") :database-type :mysql)
=>
Error: While trying to access database localhost/new/dent
using database-type MYSQL:
Error database-create failed: mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: YES)'
has occurred.
[condition type: CLSQL-ACCESS-ERROR]
</pre></div><div class="refsect1"><a id="idp73960256"></a><h2>Side Effects</h2><p>A database will be created on the filesystem of the host.</p></div><div class="refsect1"><a id="idp73961488"></a><h2>Exceptional Situations</h2><p>An exception will be thrown if the database system does
not allow new databases to be created or if database creation
fails.</p></div><div class="refsect1"><a id="idp73962784"></a><h2>See Also</h2><p>
</p><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="link" href="destroy-database.html" title="DESTROY-DATABASE"><code class="function">destroy-database</code></a></td></tr><tr><td><a class="link" href="probe-database.html" title="PROBE-DATABASE"><code class="function">probe-database</code></a></td></tr><tr><td><a class="link" href="list-databases.html" title="LIST-DATABASES"><code class="function">list-databases</code></a></td></tr></table><p>
</p></div><div class="refsect1"><a id="idp73967920"></a><h2>Notes</h2><p>This function may invoke the operating systems
functions. Thus, some database systems may require the
administration functions to be available in the current
<span class="symbol">PATH</span>. At this time, the
<span class="symbol">:mysql</span> backend requires
<code class="filename">mysqladmin</code> and the
<span class="symbol">:postgresql</span> backend requires
<code class="filename">createdb</code>.</p><p>
<code class="function">create-database</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="status.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ref-connect.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="destroy-database.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">STATUS </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> DESTROY-DATABASE</td></tr></table></div></body></html>
|