Browse Source

manual and msg wording cosmetics

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55009 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 12 years ago
parent
commit
dbce1c15f1
2 changed files with 20 additions and 19 deletions
  1. 18 17
      db/db.connect/db.connect.html
  2. 2 2
      db/db.connect/main.c

+ 18 - 17
db/db.connect/db.connect.html

@@ -3,7 +3,8 @@
 <em>db.connect</em> allows the user to set database connection parameters.
 <em>db.connect</em> allows the user to set database connection parameters.
 These parameters are then taken as default values by modules so that the
 These parameters are then taken as default values by modules so that the
 user does not need to enter the parameters each time.
 user does not need to enter the parameters each time.
-
+<p>
+The default database backend in GRASS 7 is SQLite.
 
 
 <h2>NOTES</h2>
 <h2>NOTES</h2>
 
 
@@ -19,27 +20,16 @@ or <em>v.db.addtable</em>.
 
 
 <h2>EXAMPLES</h2>
 <h2>EXAMPLES</h2>
 
 
-<h3>DBF</h3>
-
-Local storage (the dbf/ subdirectory in the mapset must exist or must be
-created by the user):
-<br>
-<div class="code"><pre>
-db.connect driver=dbf database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/'
-db.tables -p
-</pre></div>
-
-
-<h3>SQLite</h3>
+<h3>SQLite (default backend)</h3>
 
 
 Local storage:
 Local storage:
 <br>
 <br>
 <div class="code"><pre>
 <div class="code"><pre>
-db.connect driver=sqlite database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db'
+db.connect -d
 db.connect -p
 db.connect -p
 db.tables -p
 db.tables -p
 </pre></div>
 </pre></div>
-<p>The SQLite database is created automatically when used the first time.
+<p>The SQLite database file is created automatically when used the first time.
 
 
 
 
 <h3>ODBC</h3>
 <h3>ODBC</h3>
@@ -101,11 +91,21 @@ db.connect -p
 db.tables -p
 db.tables -p
 </pre></div>
 </pre></div>
 
 
+<h3>DBF (not recommended)</h3>
+
+Local storage (the dbf/ subdirectory in the mapset must exist or must be
+created by the user):
+<br>
+<div class="code"><pre>
+db.connect driver=dbf database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/'
+db.tables -p
+</pre></div>
 
 
 <h2>SEE ALSO</h2>
 <h2>SEE ALSO</h2>
 
 
 <em>
 <em>
 <a href="db.columns.html">db.columns</a>,
 <a href="db.columns.html">db.columns</a>,
+<a href="db.copy.html">db.copy</a>,
 <a href="db.drivers.html">db.drivers</a>,
 <a href="db.drivers.html">db.drivers</a>,
 <a href="db.login.html">db.login</a>,
 <a href="db.login.html">db.login</a>,
 <a href="db.tables.html">db.tables</a>,
 <a href="db.tables.html">db.tables</a>,
@@ -116,9 +116,10 @@ db.tables -p
 <p>
 <p>
 <a href="sql.html">GRASS SQL interface</a>
 <a href="sql.html">GRASS SQL interface</a>
 
 
-<h2>AUTHOR</h2>
+<h2>AUTHORS</h2>
 
 
-Radim Blazek, ITC-Irst, Trento, Italy
+Main author: Radim Blazek, ITC-Irst, Trento, Italy<br>
+GRASS 7 improvements: Martin Landa, Markus Metz
 
 
 <p>
 <p>
 <i>Last changed: $Date$</i>
 <i>Last changed: $Date$</i>

+ 2 - 2
db/db.connect/main.c

@@ -9,7 +9,7 @@
  *               Hamish Bowman <hamish_b yahoo com>
  *               Hamish Bowman <hamish_b yahoo com>
  *               Martin Landa <landa.martin gmail.com> ('d' flag)
  *               Martin Landa <landa.martin gmail.com> ('d' flag)
  * PURPOSE:      set parameters for connection to database
  * PURPOSE:      set parameters for connection to database
- * COPYRIGHT:    (C) 2002-2010 by the GRASS Development Team
+ * COPYRIGHT:    (C) 2002-2013 by the GRASS Development Team
  *
  *
  *               This program is free software under the GNU General Public
  *               This program is free software under the GNU General Public
  *               License (>=v2). Read the file COPYING that comes with GRASS
  *               License (>=v2). Read the file COPYING that comes with GRASS
@@ -66,7 +66,7 @@ int main(int argc, char *argv[])
     def = G_define_flag();
     def = G_define_flag();
     def->key = 'd';
     def->key = 'd';
     def->label = _("Set from default settings and exit");
     def->label = _("Set from default settings and exit");
-    def->description = _("Overwrite current settings if initialized");
+    def->description = _("Overwrite current settings if already initialized");
     def->guisection = _("Set");
     def->guisection = _("Set");
 
 
     driver = G_define_standard_option(G_OPT_DB_DRIVER);
     driver = G_define_standard_option(G_OPT_DB_DRIVER);