IndexDesc & db::IndexDesc::add_field ( const NameChar *  name  ) 

Add a field to the index.

The index is used to sort data in a table by the fields added to the index. Fields added first have higher precidence than fields added later when sorting.

Parameters:
name Name of the field to add.
Returns:
A reference to the index description. This allows calls to add_field to be chained together in a single statement.


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