db_result_t db_tabledef_set_indexes ( db_tabledef_t tdef,
const db_indexdef_t indexes,
db_len_t  nindexes 
)

Set all of the indexes for a table definition.

Parameters:
tdef Table configuration.
indexes Index configuration(s).
nindexes Number of indexes.
Returns:
On failure, one of the following error codes is set:
  • DB_EINVAL Caused by: Table configuration is null, number of indexes is <0.

See also:
get_db_error, clear_db_error, Error Handling


Copyright © 2005-2008 ITTIA®. All rights reserved.