[GRASS-SVN] r48087 - in grass/trunk: db/db.drivers
scripts/db.dropcolumn scripts/db.droptable scripts/db.test
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 3 06:32:46 EDT 2011
Author: neteler
Date: 2011-09-03 03:32:46 -0700 (Sat, 03 Sep 2011)
New Revision: 48087
Modified:
grass/trunk/db/db.drivers/db.drivers.html
grass/trunk/scripts/db.dropcolumn/db.dropcolumn.html
grass/trunk/scripts/db.droptable/db.droptable.html
grass/trunk/scripts/db.test/db.test.html
Log:
examples updated
Modified: grass/trunk/db/db.drivers/db.drivers.html
===================================================================
--- grass/trunk/db/db.drivers/db.drivers.html 2011-09-03 10:28:20 UTC (rev 48086)
+++ grass/trunk/db/db.drivers/db.drivers.html 2011-09-03 10:32:46 UTC (rev 48087)
@@ -2,15 +2,26 @@
<em>db.drivers</em> lists all database drivers.
+<h2>EXAMPLE</h2>
+
+Show all installed GRASS database drivers:
+<p>
+<div class="code"><pre>
+db.drivers -p
+</pre></div>
+
<h2>SEE ALSO</h2>
-<em><a HREF="db.connect.html">db.connect</a>,
+
+<em>
+<a HREF="db.connect.html">db.connect</a>,
<a HREF="db.describe.html">db.describe</a>,
<a HREF="db.drivers.html">db.drivers</a>,
<a HREF="db.droptable.html">db.droptable</a>,
<a HREF="db.execute.html">db.execute</a>,
<a HREF="db.login.html">db.login</a>,
<a HREF="db.tables.html">db.tables</a>,
-<a HREF="sql.html">GRASS SQL interface</a></em>
+<a HREF="sql.html">GRASS SQL interface</a>
+</em>
<h2>AUTHOR</h2>
Modified: grass/trunk/scripts/db.dropcolumn/db.dropcolumn.html
===================================================================
--- grass/trunk/scripts/db.dropcolumn/db.dropcolumn.html 2011-09-03 10:28:20 UTC (rev 48086)
+++ grass/trunk/scripts/db.dropcolumn/db.dropcolumn.html 2011-09-03 10:32:46 UTC (rev 48087)
@@ -8,33 +8,36 @@
<em>db.dropcolumn</em> is a front-end to <em>db.execute</em> to allow easier
usage with a special workaround for the SQLite driver to support column
-drop.
+drop also for SQLite tables.
-<h2>EXAMPLES</h2>
+<h2>EXAMPLE</h2>
-Dropping a column (Spearfish):
+Dropping a column (North Carolina sample dataset):
<p>
<div class="code"><pre>
# work on own copy
-g.copy vect=roads,myroads
+g.copy vect=roadsmajor,myroads
db.describe -c myroads
# only shows what would happen:
-db.dropcolumn myroads column=label
+db.dropcolumn myroads column=SHAPE_LEN
# actually drops the column
-db.dropcolumn -f myroads column=label
+db.dropcolumn -f myroads column=SHAPE_LEN
db.describe -c myroads
</pre></div>
<h2>SEE ALSO</h2>
-<em><a HREF="db.droptable.html">db.droptable</a></em>,
-<em><a HREF="db.execute.html">db.execute</a></em>,
-<em><a HREF="v.db.dropcolumn.html">v.db.dropcolumn</a></em>
+<em>
+<a HREF="db.describe.html">db.describe</a>,
+<a HREF="db.droptable.html">db.droptable</a>,
+<a HREF="db.execute.html">db.execute</a>,
+<a HREF="v.db.dropcolumn.html">v.db.dropcolumn</a>,
+<a HREF="sql.html">GRASS SQL interface</a>
+</em>
-
<h2>AUTHOR</h2>
Markus Neteler
Modified: grass/trunk/scripts/db.droptable/db.droptable.html
===================================================================
--- grass/trunk/scripts/db.droptable/db.droptable.html 2011-09-03 10:28:20 UTC (rev 48086)
+++ grass/trunk/scripts/db.droptable/db.droptable.html 2011-09-03 10:32:46 UTC (rev 48087)
@@ -12,8 +12,8 @@
<h2>EXAMPLE</h2>
-Remove an attribute table:<br>
-
+Removing an attribute table:
+<p>
<div class="code"><pre>
# show available tables
db.tables -p
Modified: grass/trunk/scripts/db.test/db.test.html
===================================================================
--- grass/trunk/scripts/db.test/db.test.html 2011-09-03 10:28:20 UTC (rev 48086)
+++ grass/trunk/scripts/db.test/db.test.html 2011-09-03 10:32:46 UTC (rev 48087)
@@ -4,9 +4,19 @@
set of SQL queries. Database must exist and connection must be set
by db.connect.
+<h2>EXAMPLE</h2>
+
+Test current SQL backend driver:
+<p>
+<div class="code"><pre>
+db.connect -p
+db.test test=test1
+</pre></div>
+
<h2>SEE ALSO</h2>
-<em><a HREF="sql.html">GRASS SQL interface</a>,
+<em>
+<a HREF="sql.html">GRASS SQL interface</a>,
<a HREF="db.connect.html">db.connect</a>,
<a HREF="db.describe.html">db.describe</a>,
<a HREF="db.drivers.html">db.drivers</a>
More information about the grass-commit
mailing list