16 #include <grass/dbmi.h>
42 if (ret_code != DB_OK)
62 const char *column_name)
72 tbl = strchr(table_name,
'.');
78 sprintf(buf,
"%s_%s", tbl, column_name);
int db_create_index(dbDriver *driver, dbIndex *index)
Create index.
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
int db_set_index_type_unique(dbIndex *index)
void db__set_protocol_fds(FILE *send, FILE *recv)
void db_init_index(dbIndex *index)
void db_free_index(dbIndex *index)
int db_alloc_index_columns(dbIndex *index, int ncols)
int db_set_index_name(dbIndex *index, const char *name)
int db_set_index_column_name(dbIndex *index, int column_num, const char *name)
#define DB_START_PROCEDURE_CALL(x)
#define DB_RECV_RETURN_CODE(x)
int db_create_index2(dbDriver *driver, const char *table_name, const char *column_name)
Create unique index.
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
int db_set_index_table_name(dbIndex *index, const char *name)
#define DB_RECV_STRING(x)