GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
DBMI Library (client) - create index. More...
Go to the source code of this file.
Functions | |
int | db_create_index (dbDriver *driver, dbIndex *index) |
Create index. More... | |
int | db_create_index2 (dbDriver *driver, const char *table_name, const char *column_name) |
Create unique index. More... | |
DBMI Library (client) - create 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.
Create index.
driver | db driver |
index | index info (pointer to dbIndex structure) |
Definition at line 28 of file c_create_idx.c.
References db__set_protocol_fds(), DB_OK, DB_PROC_CREATE_INDEX, DB_RECV_RETURN_CODE, DB_RECV_STRING, DB_SEND_INDEX, DB_START_PROCEDURE_CALL, and _db_index::indexName.
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) |
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(), db_set_index_type_unique(), and NULL.