select.c File Reference

#include <stdlib.h>
#include <string.h>
#include <gis.h>
#include <dbmi.h>

Include dependency graph for select.c:

Go to the source code of this file.

Functions

int db_select_int (dbDriver *driver, char *tab, char *col, char *where, int **pval)
int db_select_value (dbDriver *driver, char *tab, char *key, int id, char *col, dbValue *val)
int cmp (const void *pa, const void *pb)
int cmpcat (const void *pa, const void *pb)
int cmpcatkey (const void *pa, const void *pb)
int db_select_CatValArray (dbDriver *driver, char *tab, char *key, char *col, char *where, dbCatValArray *cvarr)
void db_CatValArray_sort (dbCatValArray *arr)
int db_CatValArray_get_value (dbCatValArray *arr, int key, dbCatVal **cv)
int db_CatValArray_get_value_int (dbCatValArray *arr, int key, int *val)
int db_CatValArray_get_value_double (dbCatValArray *arr, int key, double *val)


Function Documentation

int cmp ( const void *  pa,
const void *  pb 
)

Definition at line 152 of file select.c.

int cmpcat ( const void *  pa,
const void *  pb 
)

Definition at line 162 of file select.c.

Referenced by db_CatValArray_get_value(), db_CatValArray_get_value_int(), db_CatValArray_sort(), and db_select_CatValArray().

int cmpcatkey ( const void *  pa,
const void *  pb 
)

Definition at line 172 of file select.c.

Referenced by db_CatValArray_get_value_double().

int db_CatValArray_get_value ( dbCatValArray *  arr,
int  key,
dbCatVal **  cv 
)

Definition at line 302 of file select.c.

References cmpcat().

int db_CatValArray_get_value_double ( dbCatValArray *  arr,
int  key,
double *  val 
)

Definition at line 334 of file select.c.

References cmpcatkey().

int db_CatValArray_get_value_int ( dbCatValArray *  arr,
int  key,
int *  val 
)

Definition at line 318 of file select.c.

References cmpcat().

void db_CatValArray_sort ( dbCatValArray *  arr  ) 

Definition at line 293 of file select.c.

References cmpcat().

int db_select_CatValArray ( dbDriver *  driver,
char *  tab,
char *  key,
char *  col,
char *  where,
dbCatValArray *  cvarr 
)

Definition at line 194 of file select.c.

References cmpcat(), db_append_string(), db_CatValArray_alloc(), db_close_cursor(), db_fetch(), db_free_string(), db_get_column_sqltype(), db_get_column_value(), db_get_cursor_table(), db_get_num_rows(), db_get_string(), db_get_table_column(), db_get_value_double(), db_get_value_int(), db_init_string(), db_open_select_cursor(), db_set_string(), and db_sqltype_to_Ctype().

int db_select_int ( dbDriver *  driver,
char *  tab,
char *  col,
char *  where,
int **  pval 
)

Definition at line 20 of file select.c.

References db_append_string(), db_close_cursor(), db_fetch(), db_free_string(), db_get_column_sqltype(), db_get_column_value(), db_get_cursor_table(), db_get_table_column(), db_get_value_double(), db_get_value_int(), db_get_value_string(), db_init_string(), db_open_select_cursor(), and db_sqltype_to_Ctype().

int db_select_value ( dbDriver *  driver,
char *  tab,
char *  key,
int  id,
char *  col,
dbValue *  val 
)

Definition at line 110 of file select.c.

References db_append_string(), db_close_cursor(), db_copy_value(), db_fetch(), db_free_string(), db_get_column_value(), db_get_cursor_table(), db_get_table_column(), db_init_string(), and db_open_select_cursor().


Generated on Sat Jul 22 22:05:51 2006 for GRASS by  doxygen 1.4.7