#include <string.h>#include <stdlib.h>#include "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) | |
| dbIndex* db_alloc_index_array | ( | int | count | ) |
Definition at line 65 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 | ) |
Definition at line 29 of file index.c.
References db_free_string(), db_free_string_array(), and db_init_index().
Referenced by db_create_index2(), db_d_create_index(), and db_free_index_array().
| void db_free_index_array | ( | dbIndex * | list, | |
| int | count | |||
| ) |
Definition at line 87 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 195 of file index.c.
References db_error(), and db_get_string().
Referenced by db_print_index().
| char* db_get_index_name | ( | dbIndex * | index | ) |
| int db_get_index_number_of_columns | ( | dbIndex * | index | ) |
| char* db_get_index_table_name | ( | dbIndex * | index | ) |
| void db_init_index | ( | dbIndex * | index | ) |
Definition at line 12 of file index.c.
References db_init_string().
Referenced by db__recv_index(), db_alloc_index_array(), db_create_index2(), db_d_create_index(), and db_free_index().
| db_print_index | ( | FILE * | fd, | |
| dbIndex * | index | |||
| ) |
Definition at line 249 of file index.c.
References db_get_index_column_name(), db_get_index_name(), db_get_index_number_of_columns(), db_get_index_table_name(), and db_test_index_type_unique().
| int db_set_index_column_name | ( | dbIndex * | index, | |
| int | column_num, | |||
| char * | name | |||
| ) |
Definition at line 175 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 108 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 135 of file index.c.
References db_set_string().
Referenced by db_create_index2().
| db_set_index_type_unique | ( | dbIndex * | index | ) |
| db_test_index_type_unique | ( | dbIndex * | index | ) |
1.4.7