Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTDatabase::AddTable

Syntax

void AddTable(const CTString& Name, const CTString& Path)

Parameters

  • Name [in] - The name of the table to add to the database.
  • Path [in] - The table path to add to the database.

Description

Adds an existing table to the database. It is possible to add c-tree Plus files to an existing database if this file has the incremental and DODA structures stored. See Compatibility regarding compatibility issues.

A table that has been created independent from a database, or in a different database may also be added to the current database.

Return

None.

Example


pDatabase->Connect();

try

{

pDatabase->AddTable(my_old_c-tree_file, path);

printf("\nTable added succesfully!!");

}

catch (CTException& err)

{

printf("\n\n%d %s",err.GetErrorCode(),

err.GetErrorMsg());

return (1);

}


See also

DropTable(), DeleteTable(), CreateTable()

TOCIndex