#include "SSTable.h"
int SSTable::AddColumn(const char * newColumnName,
int makeTree = 0,
char opts = DEFAULT_OPTIONS);
#include "SSTable.h"
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
SSTable * pTable = new SSTable();
pTable->AddColumn("NextToLastColumn");
pTable->AddColumn("LastColumn", TRUE, SSTable::DT_STRING |
SSTable::CASE_SENSE | SSTable::W_SPACE_SENSE);
AddColumn appends a column to the table, but does not add data to the column yet. Use FillColumn to add data to the whole column.
| newColumnName | The name of the new column. The column name must be unique to the table. |
| makeTree | If zero, no index will be constructed on the column, which will not be searchable. Set to a positive number if the column is to be searchable. Has a default value of 0. |
| opts | Sets the options for the column. These include the datatype, case sensitivity, and white space sensitivity for comparisions. Has a default value indicating a column of strings, with case and white space sensitivity. |
A negative value indicates an error or warning.
| See also: | FillColumn |
|---|---|
| Column Option Constants |