[GRASS-SVN] r68770 - in grass/trunk: lib/db/sqlp scripts/v.db.addcolumn scripts/v.db.addtable

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 26 07:02:08 PDT 2016


Author: neteler
Date: 2016-06-26 07:02:08 -0700 (Sun, 26 Jun 2016)
New Revision: 68770

Modified:
   grass/trunk/lib/db/sqlp/sql.html
   grass/trunk/scripts/v.db.addcolumn/v.db.addcolumn.py
   grass/trunk/scripts/v.db.addtable/v.db.addtable.html
   grass/trunk/scripts/v.db.addtable/v.db.addtable.py
Log:
v.db.addcolumn, v.db.addtable + manual: clarify and standardize name and type of new column(s)

Modified: grass/trunk/lib/db/sqlp/sql.html
===================================================================
--- grass/trunk/lib/db/sqlp/sql.html	2016-06-26 09:50:42 UTC (rev 68769)
+++ grass/trunk/lib/db/sqlp/sql.html	2016-06-26 14:02:08 UTC (rev 68770)
@@ -76,7 +76,11 @@
 <li> DBF column names are limited to 10 characters (DBF API definition).</li>
 </ul>
 
+<h3>Database table column types</h3>
 
+The supported types of columns depend on the database backend. However, all backends
+should support VARCHAR, INT, DOUBLE PRECISION and DATE.
+
 <h2>EXAMPLES</h2>
 
 <h3>Display of vector feature selected by attribute query</h3>

Modified: grass/trunk/scripts/v.db.addcolumn/v.db.addcolumn.py
===================================================================
--- grass/trunk/scripts/v.db.addcolumn/v.db.addcolumn.py	2016-06-26 09:50:42 UTC (rev 68769)
+++ grass/trunk/scripts/v.db.addcolumn/v.db.addcolumn.py	2016-06-26 14:02:08 UTC (rev 68770)
@@ -34,8 +34,10 @@
 #% key: columns
 #% type: string
 #% label: Name and type of the new column(s) ('name type [,name type, ...]')
-#% description: Data types depend on database backend, but all support VARCHAR(), INT, DOUBLE PRECISION and DATE
+#% description: Types depend on database backend, but all support VARCHAR(), INT, DOUBLE PRECISION and DATE. Example: 'label varchar(250), type integer'
 #% required: yes
+#% multiple: yes
+#% key_desc: name type
 #%end
 
 import sys

Modified: grass/trunk/scripts/v.db.addtable/v.db.addtable.html
===================================================================
--- grass/trunk/scripts/v.db.addtable/v.db.addtable.html	2016-06-26 09:50:42 UTC (rev 68769)
+++ grass/trunk/scripts/v.db.addtable/v.db.addtable.html	2016-06-26 14:02:08 UTC (rev 68770)
@@ -9,8 +9,8 @@
 
 <em>v.db.addtable</em> is a front-end to <em>db.execute</em> to allow easier
 usage.
-
-v.db.addtable will only insert category values into the table for those features 
+<p>
+<em>v.db.addtable</em> will only insert category values into the table for those features 
 which actually have a category value in the relevant layer. The use can add 
 category values automatically by using <em>v.category</em> or manually with 
 <em><a href="wxGUI.vdigit.html">wxGUI vector digitizer</a></em>
@@ -18,7 +18,7 @@
 and then use either a combinatino of <em>v.category</em> + <em>v.to.db</em> or 
 <em><a href="wxGUI.vdigit.html">wxGUI vector digitizer</a></em>
 to add the relevant lines to the table.
-
+<p>
 The supported types of columns depend on the database backend. However, all
 backends should support VARCHAR, INT, DOUBLE PRECISION and DATE.
 <p>The existing database connection(s) can be verified with <em>v.db.connect</em>.

Modified: grass/trunk/scripts/v.db.addtable/v.db.addtable.py
===================================================================
--- grass/trunk/scripts/v.db.addtable/v.db.addtable.py	2016-06-26 09:50:42 UTC (rev 68769)
+++ grass/trunk/scripts/v.db.addtable/v.db.addtable.py	2016-06-26 14:02:08 UTC (rev 68770)
@@ -44,8 +44,8 @@
 #%option
 #% key: columns
 #% type: string
-#% label: Name and type of the new column(s)
-#% description: Types depend on database backend, but all support VARCHAR(), INT, DOUBLE PRECISION and DATE. Example: "label varchar(250), type integer"
+#% label: Name and type of the new column(s) ('name type [,name type, ...]')
+#% description: Types depend on database backend, but all support VARCHAR(), INT, DOUBLE PRECISION and DATE. Example: 'label varchar(250), type integer'
 #% required: no
 #% multiple: yes
 #% key_desc: name type



More information about the grass-commit mailing list