Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

Working with Sessions

The c-treeDB interface requires a session object to perform any data structure initialization or manipulation. The following steps must be executed within a session before any database or table operations are attempted:

  1. Construct a CTSession object
  2. Logon to a c-tree session by calling the CTSession::Logon() method.

Then, after this initialization, all database and table operations should be performed. After these, in order to finalize the database operations, the following steps should be performed:

  1. Logout from a c-tree session by calling the CTSession::Logout() method.
  2. Destroy the CTSession object

In This Section

Creating a Session Object

Creating a New Session Dictionary

Session Logon and Logout

Session Properties

Managing Databases

Working with Sessions without Dictionary Support

Attach and Detach Existing Sessions

Session Dictionary

TOCIndex