GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
DBMI Library (client) - column info. More...
#include <stdlib.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/dbmi.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | db_column_sqltype (dbDriver *driver, const char *tab, const char *col) |
Get column sqltype. More... | |
int | db_column_Ctype (dbDriver *driver, const char *tab, const char *col) |
Get column ctype. More... | |
int | db_get_column (dbDriver *Driver, const char *tname, const char *cname, dbColumn **Column) |
Get column structure by table and column name. More... | |
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.
Definition in file dbmi_client/column.c.
int db_column_Ctype | ( | dbDriver * | driver, |
const char * | tab, | ||
const char * | col | ||
) |
Get column ctype.
driver | DB driver |
tab | table name |
col | column name |
Definition at line 77 of file dbmi_client/column.c.
References db_column_sqltype(), db_sqltype_to_Ctype(), and dialogs::type.
Referenced by IL_vector_input_data_2d().
int db_column_sqltype | ( | dbDriver * | driver, |
const char * | tab, | ||
const char * | col | ||
) |
Get column sqltype.
See db_sqltype_name().
driver | DB driver |
tab | table name |
col | column name |
Definition at line 35 of file dbmi_client/column.c.
References db_describe_table(), db_free_string(), db_free_table(), db_get_column_name(), db_get_column_sqltype(), db_get_table_column(), db_get_table_number_of_columns(), db_init_string(), db_set_string(), and dialogs::type.
Referenced by db_column_Ctype().
int db_get_column | ( | dbDriver * | Driver, |
const char * | tname, | ||
const char * | cname, | ||
dbColumn ** | Column | ||
) |
Get column structure by table and column name.
Column is set to new dbColumn structure or NULL if column was not found
Driver | DB driver | |
tname | table name | |
cname | column name | |
[out] | Column | column structure to store within |
Definition at line 102 of file dbmi_client/column.c.
References db_copy_value(), db_describe_table(), db_free_table(), db_get_column_description(), db_get_column_name(), db_get_table_column(), db_get_table_number_of_columns(), db_init_column(), db_init_string(), db_set_string(), G_debug(), G_strcasecmp(), G_warning(), malloc(), and NULL.
Referenced by Vect_net_build_graph().