浏览代码

libdb: client/columns.c note supported type in dox documentation

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46777 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 年之前
父节点
当前提交
b79b83b62c
共有 1 个文件被更改,包括 36 次插入14 次删除
  1. 36 14
      lib/db/dbmi_client/column.c

+ 36 - 14
lib/db/dbmi_client/column.c

@@ -1,18 +1,18 @@
 /*!
- * \file db/dbmi_client/column.c
- * 
- * \brief DBMI Library (client) - column info
- *
- * (C) 1999-2008 by the GRASS Development Team
- *
- * This program is free software under the GNU General Public
- * License (>=v2). Read the file COPYING that comes with GRASS
- * for details.
- *
- * \author Joel Jones (CERL/UIUC), Radim Blazek
- * \author Update by Glynn Clement <glynn gclements.plus.com>
- * and Martin Landa <landa.martin gmail.com>
- */
+  \file lib/db/dbmi_client/column.c
+  
+  \brief DBMI Library (client) - column info
+  
+  (C) 1999-2008, 2011 by the GRASS Development Team
+  
+  This program is free software under the GNU General Public
+  License (>=v2). Read the file COPYING that comes with GRASS
+  for details.
+  
+  \author Joel Jones (CERL/UIUC), Radim Blazek
+  \author Update by Glynn Clement <glynn gclements.plus.com>
+  \author Martin Landa <landa.martin gmail.com>
+*/
 
 #include <stdlib.h>
 #include <string.h>
@@ -25,6 +25,22 @@
 
   See db_sqltype_name().
 
+  Supported types:
+   - DB_SQL_TYPE_UNKNOWN
+   - DB_SQL_TYPE_CHARACTER
+   - DB_SQL_TYPE_SMALLINT
+   - DB_SQL_TYPE_INTEGER
+   - DB_SQL_TYPE_REAL
+   - DB_SQL_TYPE_DOUBLE_PRECISION
+   - DB_SQL_TYPE_DECIMAL
+   - DB_SQL_TYPE_NUMERIC
+   - DB_SQL_TYPE_DATE
+   - DB_SQL_TYPE_TIME
+   - DB_SQL_TYPE_TIMESTAMP
+   - DB_SQL_TYPE_INTERVAL
+   - DB_SQL_TYPE_TEXT
+   - DB_SQL_TYPE_SERIAL
+
   \param driver DB driver
   \param tab table name
   \param col column name
@@ -63,6 +79,12 @@ int db_column_sqltype(dbDriver * driver, const char *tab, const char *col)
 
   See db_sqltype_to_Ctype().
 
+  Supported types:
+   - DB_C_TYPE_STRING
+   - DB_C_TYPE_INT
+   - DB_C_TYPE_DOUBLE
+   - DB_C_TYPE_DATETIME
+
   \param driver DB driver
   \param tab table name
   \param col column name