Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

Add, insert, delete, or edit fields

By calling one of the following edit management methods, the table definition is marked as modified. For the changes to be reflected on the data and index files, you must call ctdbAlterTable().

To add, insert or delete a field, call CTTable::AddField(), CTTable::InsField(), CTTable::DelField(), CTField::SetName(), CTField::SetType(), CTField::SetLength(), CTField::SetPrecision(), CTField::SetScale(), and CTField::SetNullFlag().

Most changes relating to fields will trigger the CTTable::Alter() to perform a full table build.

TOCIndex