Skip to content

Commit e5dd6f0

Browse files
committed
- More documentation cleanup
- Index name instead of category column in LSST schema browser output
1 parent 7e339ab commit e5dd6f0

File tree

5 files changed

+54
-23
lines changed

5 files changed

+54
-23
lines changed

README

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
Science Tools for MySQL
22
=======================
33

4-
Science-specific tools and extensions for SQL. Currently the project
5-
contains user defined functions (UDFs) for MySQL including spatial geometry,
6-
photometry, and statistics functions.
4+
SciSQL provides science-specific tools and extensions for SQL. Currently,
5+
the project contains user defined functions (UDFs) and stored procedures for
6+
MySQL in the areas of spherical geometry, statistics, and photometry. It is
7+
distributed under the terms of the GNU Lesser General Public License,
8+
version 3.
9+
10+
Note that the doc/index.html file in the SciSQL distribution contains
11+
all the instructions below, as well as documentation for all the SciSQL UDFs
12+
and stored procedures.
713

814

915
Installation prerequisites:
@@ -22,15 +28,15 @@ In order to install the UDFs, you need write permission to the MySQL server
2228
plug-in directory as well as a MySQL account with admin priviledges.
2329

2430

25-
WARNING:
26-
--------
31+
Databases reserved for SciSQL use:
32+
----------------------------------
2733

2834
The following database names are reserved for use by SciSQL:
2935

3036
- scisql Contains SciSQL stored procedures.
3137
- scisql_test Used by SciSQL unit tests.
3238
- scisql_demo Contains sample data that can be used to
33-
excercise the SciSQL UDFs.
39+
exercise the SciSQL UDFs.
3440

3541
The scisql and scisql_demo databases are dropped and re-created during
3642
installation. If you are using these databases for other things,
@@ -54,9 +60,9 @@ Connection details, including this password, are stored in
5460
build/c4che/.my.cnf in the MySQL options file format. This allows various
5561
build steps to connect to MySQL without constantly prompting for a password.
5662

57-
Though the .my.cnf file permissions are set such that only the creator is
58-
allowed read/write access, for security reasons it is still recommended to
59-
run `make distclean` once SciSQL has been installed - this will remove the
63+
Even though the .my.cnf file permissions are set such that only its creator
64+
is allowed read/write access, for security reasons it is still recommended to
65+
run `make distclean` once SciSQL has been installed. This will remove the
6066
entire build directory and its contents.
6167

6268

doc/docs.css

+10-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,16 @@ ul {
112112
padding: 0.1em 0.1em 0.1em 0.5em;
113113
}
114114
.section-docs {
115-
margin-left: 2em;
115+
margin-left: 50px;
116+
}
117+
.section-docs h3 {
118+
margin-left: -50px;
119+
padding-left: 1em;
120+
border-top: 1px solid #99B;
121+
background: #EEF;
122+
}
123+
.section-docs h3.warning {
124+
background: #FEE;
116125
}
117126

118127
.internal {

scripts/install.mysql

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ END //
219219
-- <proc name="scisqlGrant" section="misc">
220220
-- <desc>
221221
-- Gives a user connecting from the specified host permission to call
222-
-- scisql stored procedures and the use the temporary tables they
223-
-- generate.
222+
-- SciSQL stored procedures and to create/use temporary tables in the
223+
-- scisql database.
224224
-- </desc>
225225
-- <args>
226226
-- <arg name="user" type="VARCHAR(255)">

tools/templates/lsst_schema_browser.mako

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ CREATE TABLE md_Udf (
2222
name VARCHAR(255) NOT NULL UNIQUE,
2323
category VARCHAR(255) NOT NULL,
2424
htmlDocs TEXT,
25-
INDEX md_Udf_category (category)
25+
INDEX md_Udf_name (name)
2626
);
2727

2828
CREATE TABLE md_Proc (
@@ -31,7 +31,7 @@ CREATE TABLE md_Proc (
3131
dbName VARCHAR(255) NOT NULL,
3232
category VARCHAR(255) NOT NULL,
3333
htmlDocs TEXT,
34-
INDEX md_Proc_category (category)
34+
INDEX md_Proc_name (name)
3535
);
3636

3737

tools/templates/sections.xml

+25-9
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<li><a href="https://answers.launchpad.net/scisql/+addquestion">Ask a question</a></li>
1818
</ul>
1919
<p>
20-
The SciSQL documentation makes use of:
20+
SciSQL is also distributed with a pair of Javascript libraries. These are:
2121
</p>
2222
<ul>
2323
<li>
@@ -27,8 +27,8 @@
2727
</li>
2828
<li>
2929
<a href="http://code.google.com/p/google-code-prettify/">Google prettify</a>,
30-
distriuted under the <a href="http://www.apache.org/licenses/LICENSE-2.0">
31-
Apache License, Version 2.0</a>
30+
distributed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">
31+
Apache License version 2.0</a>
3232
</li>
3333
</ul>
3434
</div>
@@ -58,7 +58,7 @@
5858
plug-in directory, as well as a MySQL account with admin priviledges.
5959
</p>
6060

61-
<h3 class="warning">WARNING</h3>
61+
<h3 class="warning">Databases reserved for SciSQL use</h3>
6262
<p>
6363
The following database names are reserved for use by SciSQL:
6464
</p>
@@ -68,7 +68,7 @@
6868
<dt>scisql_test</dt>
6969
<dd>Used by SciSQL unit tests.</dd>
7070
<dt>scisql_demo</dt>
71-
<dd>Contains sample data that can be used to excercise the SciSQL UDFs.</dd>
71+
<dd>Contains sample data that can be used to exercise the SciSQL UDFs.</dd>
7272
</dl>
7373
<p>
7474
The scisql and scisql_demo databases are dropped and re-created during
@@ -98,9 +98,9 @@
9898
build steps to connect to MySQL without constantly prompting for a password.
9999
</p>
100100
<p>
101-
Though the <tt>.my.cnf</tt> file permissions are set such that only the creator is
102-
allowed read/write access, for security reasons it is still recommended to
103-
run <tt>`make distclean`</tt> once sciSQL has been installed - this will remove the
101+
Even though the <tt>.my.cnf</tt> file permissions are set such that only its creator
102+
is allowed read/write access, for security reasons it is still recommended to
103+
run <tt>`make distclean`</tt> once sciSQL has been installed. This will remove the
104104
entire build directory and its contents.
105105
</p>
106106

@@ -110,8 +110,24 @@
110110
<tt>make install</tt>, and <tt>make uninstall</tt> commands.
111111
</p>
112112
<p>
113-
TODO TODO TODO
113+
The <tt>install</tt> command will CREATE the SciSQL UDFs, stored procedures, and
114+
databases (including the scisql_demo database). It will also automatically
115+
run the SciSQL unit tests. You can re-run the tests anytime with <tt>`make test`</tt>.
114116
</p>
117+
<p>
118+
The uninstall command DROP the SciSQL UDFs, stored procedures, and databases.
119+
</p>
120+
121+
<h3>Reporting bugs and getting help</h3>
122+
<p>
123+
If you encounter test-case failures, or think you've identified a
124+
bug in the SciSQL code, please file a report here:
125+
</p>
126+
<p><a href="https://bugs.launchpad.net/scisql/+filebug">https://bugs.launchpad.net/scisql/+filebug</a></p>
127+
<p>
128+
For other help or inquiries, submit your questions here:
129+
</p>
130+
<p><a href="https://answers.launchpad.net/scisql/+addquestion">https://answers.launchpad.net/scisql/+addquestion</a></p>
115131
</div>
116132
</section>
117133

0 commit comments

Comments
 (0)