dbcolumns.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <grass/glocale.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/dbmi.h>

Include dependency graph for dbcolumns.c:

Go to the source code of this file.

Functions

char * Vect_get_column_names (struct Map_info *Map, int field)
 fetches list of DB column names of vector map attribute table
char * Vect_get_column_types (struct Map_info *Map, int field)
 fetches list of DB column types of vector map attribute table
char * Vect_get_column_names_types (struct Map_info *Map, int field)
 fetches list of DB column names and types of vector map attribute table


Function Documentation

char * Vect_get_column_names ( struct Map_info *  Map,
int  field 
)

fetches list of DB column names of vector map attribute table

Returns:
list of column(s) names on success, NULL on error
Parameters:
vector map

Definition at line 34 of file dbcolumns.c.

References Vect_get_field(), and Vect_get_num_dblinks().

char * Vect_get_column_names_types ( struct Map_info *  Map,
int  field 
)

fetches list of DB column names and types of vector map attribute table

Returns:
list of column(s) types on success, NULL on error
Parameters:
vector map

Definition at line 155 of file dbcolumns.c.

References Vect_get_field(), and Vect_get_num_dblinks().

char * Vect_get_column_types ( struct Map_info *  Map,
int  field 
)

fetches list of DB column types of vector map attribute table

Returns:
list of column(s) types on success, NULL on error
Parameters:
vector map

Definition at line 94 of file dbcolumns.c.

References Vect_get_field(), and Vect_get_num_dblinks().


Generated on Sun Apr 6 17:32:47 2008 for GRASS by  doxygen 1.5.5