[GRASS-SVN] r59358 - in grass/trunk/db: db.columns db.describe db.tables

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 26 06:49:59 PDT 2014


Author: neteler
Date: 2014-03-26 06:49:59 -0700 (Wed, 26 Mar 2014)
New Revision: 59358

Modified:
   grass/trunk/db/db.columns/db.columns.html
   grass/trunk/db/db.describe/db.describe.html
   grass/trunk/db/db.tables/db.tables.html
Log:
db.* manuals: add SQLite examples (trac #1862)

Modified: grass/trunk/db/db.columns/db.columns.html
===================================================================
--- grass/trunk/db/db.columns/db.columns.html	2014-03-26 12:05:58 UTC (rev 59357)
+++ grass/trunk/db/db.columns/db.columns.html	2014-03-26 13:49:59 UTC (rev 59358)
@@ -9,15 +9,15 @@
 <a href="db.connect.html">db.connect</a>, they are taken as default values and
 do not need to be spcified each time.
 
-<h2>EXAMPLE</h2>
+<h2>EXAMPLES</h2>
 
-<em>List columns from PostgreSQL attribute table</em><br>
+<em>List columns of a PostgreSQL attribute table</em><br>
 <div class="code"><pre>
 db.columns table=markveggy driver=pg database=grass60test
 </pre></div>
 
 <p>
-<em>If database parameters are already set</em><br>
+<em>If the database parameters are already set, the columns can be listed directly</em><br>
 <div class="code"><pre>
 db.columns table=markveggy
 </pre></div>
@@ -28,15 +28,23 @@
 db.columns table=network driver=dbf database=/daten/grassdata/fire/PERMANENT/dbf/
 </pre></div>
 
+<p>
+<em>List columns of table in SQLite database (note that this is the default setting)</em><br>
+<div class="code"><pre>
+db.columns driver=sqlite table=myarchsites database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db'
+</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/db/db.describe/db.describe.html
===================================================================
--- grass/trunk/db/db.describe/db.describe.html	2014-03-26 12:05:58 UTC (rev 59357)
+++ grass/trunk/db/db.describe/db.describe.html	2014-03-26 13:49:59 UTC (rev 59358)
@@ -9,9 +9,19 @@
 <a href="db.connect.html">db.connect</a>, they are taken as default values and
 do not need to be spcified each time.
  
-<h2>EXAMPLE</h2>
+<h2>EXAMPLES</h2>
 
+<em>List column descriptions of table in SQLite database (note that this is the default setting)</em><br>
 <div class="code"><pre>
+db.describe driver=sqlite table=myarchsites \
+   database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db'
+
+# or simply
+db.describe myarchsites
+</pre></div>
+
+<h3>DBF example</h3>
+<div class="code"><pre>
 db.describe -c table=roads database='$GISDBASE/$LOCATION_NAME/PERMANENT/dbf/' \
             driver=dbf
 ncols:2
@@ -49,7 +59,8 @@
 <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/db/db.tables/db.tables.html
===================================================================
--- grass/trunk/db/db.tables/db.tables.html	2014-03-26 12:05:58 UTC (rev 59357)
+++ grass/trunk/db/db.tables/db.tables.html	2014-03-26 13:49:59 UTC (rev 59358)
@@ -16,19 +16,28 @@
 </pre></div>
 
 <p>
-<em>List all tables of existing dbf database</em><br>
+<em>List all DBF tables</em><br>
 <div class="code"><pre>
 db.tables driver=dbf database=/home/user/grassdata/fire/PERMANENT/dbf
 </pre></div>
 
+<p>
+<em>List all tables in SQLite database (note that this is the default setting)</em><br>
+<div class="code"><pre>
+db.tables -p driver=sqlite database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db'
+</pre></div>
+
 <h2>SEE ALSO</h2>
-<em><a href="db.columns.html">db.columns</a>,
+<em>
+<a href="db.columns.html">db.columns</a>,
 <a href="db.droptable.html">db.droptable</a>,
 <a href="db.login.html">db.login</a>,
 <a href="db.execute.html">db.execute</a>,
-<a href="sql.html">GRASS SQL interface</a></em>
+<a href="sql.html">GRASS SQL interface</a>
+</em>
 
 <h2>AUTHOR</h2>
-?
 
+Unknown
+
 <p><i>Last changed: $Date$</i>



More information about the grass-commit mailing list