#include <string.h>
#include <grass/dbmi.h>
#include "macros.h"

Go to the source code of this file.
Functions | |
| int | db_create_index (dbDriver *driver, dbIndex *index) |
| Create index. | |
| int | db_create_index2 (dbDriver *driver, const char *table_name, const char *column_name) |
| Create unique index. | |
(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 c_create_idx.c.
| int db_create_index | ( | dbDriver * | driver, | |
| dbIndex * | index | |||
| ) |
Create index.
| driver | db driver | |
| index | index info (pointer to dbIndex structure) |
DB_FAILED on failure
Definition at line 28 of file c_create_idx.c.
References db__set_protocol_fds(), DB_RECV_RETURN_CODE, DB_RECV_STRING, DB_SEND_INDEX, and DB_START_PROCEDURE_CALL.
Referenced by db_create_index2().
| int db_create_index2 | ( | dbDriver * | driver, | |
| const char * | table_name, | |||
| const char * | column_name | |||
| ) |
Create unique index.
| driver | db driver | |
| table_name | table name | |
| column_name | column name (where to create index) |
DB_FAILED on failure
Definition at line 61 of file c_create_idx.c.
References db_alloc_index_columns(), db_create_index(), db_free_index(), db_init_index(), db_set_index_column_name(), db_set_index_name(), db_set_index_table_name(), and db_set_index_type_unique().
1.5.6