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