index.c File Reference

#include <string.h>
#include <stdlib.h>
#include <grass/dbmi.h>

Include dependency graph for index.c:

Go to the source code of this file.

Functions

void db_init_index (dbIndex *index)
void db_free_index (dbIndex *index)
int db_alloc_index_columns (dbIndex *index, int ncols)
dbIndex * db_alloc_index_array (int count)
void db_free_index_array (dbIndex *list, int count)
int db_set_index_name (dbIndex *index, char *name)
char * db_get_index_name (dbIndex *index)
int db_set_index_table_name (dbIndex *index, char *name)
char * db_get_index_table_name (dbIndex *index)
int db_get_index_number_of_columns (dbIndex *index)
int db_set_index_column_name (dbIndex *index, int column_num, char *name)
char * db_get_index_column_name (dbIndex *index, int column_num)
 db_set_index_type_unique (dbIndex *index)
 db_set_index_type_non_unique (dbIndex *index)
 db_test_index_type_unique (dbIndex *index)
 db_print_index (FILE *fd, dbIndex *index)


Function Documentation

dbIndex* db_alloc_index_array ( int  count  ) 

Definition at line 64 of file index.c.

References db_calloc(), and db_init_index().

Referenced by db__recv_index_array().

int db_alloc_index_columns ( dbIndex *  index,
int  ncols 
)

Definition at line 46 of file index.c.

References db_alloc_string_array(), and db_get_error_code().

Referenced by db__recv_index(), and db_create_index2().

void db_free_index ( dbIndex *  index  ) 

void db_free_index_array ( dbIndex *  list,
int  count 
)

Definition at line 86 of file index.c.

References db_free_index().

Referenced by db_d_list_indexes().

char* db_get_index_column_name ( dbIndex *  index,
int  column_num 
)

Definition at line 189 of file index.c.

References db_error(), and db_get_string().

Referenced by db_print_index().

char* db_get_index_name ( dbIndex *  index  ) 

Definition at line 119 of file index.c.

References db_get_string().

Referenced by db_print_index().

int db_get_index_number_of_columns ( dbIndex *  index  ) 

Definition at line 158 of file index.c.

Referenced by db_print_index().

char* db_get_index_table_name ( dbIndex *  index  ) 

Definition at line 145 of file index.c.

References db_get_string().

Referenced by db_print_index().

void db_init_index ( dbIndex *  index  ) 

db_print_index ( FILE *  fd,
dbIndex *  index 
)

int db_set_index_column_name ( dbIndex *  index,
int  column_num,
char *  name 
)

Definition at line 171 of file index.c.

References db_error(), db_get_error_code(), and db_set_string().

Referenced by db_create_index2().

int db_set_index_name ( dbIndex *  index,
char *  name 
)

Definition at line 106 of file index.c.

References db_set_string().

Referenced by db_create_index2().

int db_set_index_table_name ( dbIndex *  index,
char *  name 
)

Definition at line 132 of file index.c.

References db_set_string().

Referenced by db_create_index2().

db_set_index_type_non_unique ( dbIndex *  index  ) 

Definition at line 218 of file index.c.

db_set_index_type_unique ( dbIndex *  index  ) 

Definition at line 206 of file index.c.

Referenced by db_create_index2().

db_test_index_type_unique ( dbIndex *  index  ) 

Definition at line 230 of file index.c.

Referenced by db_print_index().


Generated on Sun Apr 6 17:31:52 2008 for GRASS by  doxygen 1.5.5