dboo::odb::delete_index

void delete_index ( const cls_id& id, const field_name& fieldname );
template<class type>
void delete_index ( const field_name& fieldname );
template<typename MT, typename C>
void delete_index(MT C::* field);
void delete_index ( const std::string& pattern );

Deletes a field index.

1

Deletes an index based on class id and field namee

2

Selects named field in class as template parameter

3

Specify field index based on pointer to member

4

Use standard regex pattern to match all indices to delete.

Parameters

id

Name of class

fieldname

Name of field. May be empty to select type index.

field

Pointer to member field

pattern

A regex to match which indices to affect

Return value

(none)

Exceptions

exception_index_not_found

If specified index is not found. Is not thrown if a regex has been specified and no index matches.

Example