Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTDatabase Methods

Constructor / Destructor

  • CTDatabase(): Creates a CTDatabase object
  • ~CTDatabase(): Destroys a CTDatabase Object and resets all the dependent objects

Database Handling

  • IsActive(): Retrieves the active state of a database (connected or disconnected state).
  • Connect(): Connects to a database
  • Create(): Create a new database
  • Disconnect(): Disconnects from a specific database
  • GetName(): Retrieves the database name.
  • GetPath(): Retrieves the database path

Table Handling

  • FirstTable(): Locates the first table in a database.
  • NextTable(): Locates the next table in a database.
  • FindTable(): Locates a table in a database by name.
  • AddTable(): Adds an existing table to a database.
  • DeleteTable(): Drops a table from the database, and delete the files from disk.
  • DropTable(): Drops a table from the database, but does not delete the files from disk.
  • GetTableUID(): Retrieves the table UID.
  • GetFirstActive(): Retrieves the first active table in the database.
  • GetNextActive(): Retrieves the next active table in the database.
  • FindActive(): Retrieves active table
  • CloseAll(): Closes all active tables associated with the database.
  • GetTableCount(): Retrieves the number of tables in the database dictionary.

In This Section

CTDatabase::CTDatabase

CTDatabase::~CTDatabase

CTDatabase::AddTable

CTDatabase::CloseAll

CTDatabase::Connect

CTDatabase::Create

CTDatabase::DeleteTable

CTDatabase::Disconnect

CTDatabase::DropTable

CTDatabase::FindActive

CTDatabase::FindTable

CTDatabase::FirstTable

CTDatabase::GetFirstActive

CTDatabase::GetNextActive

CTDatabase::GetName

CTDatabase::GetPath

CTDatabase::GetTableCount

CTDatabase::GetTableUID

CTDatabase::IsActive

CTDatabase::IsExclusive

CTDatabase::NextTable

CTDatabase::RenameTable

CTDatabase::SetExclusive

TOCIndex