Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTDatabase Methods

Constructor / Destructor

  • CTDatabase(): Creates a CTDatabase object
  • Dispose(): 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
  • CreateDatabase(): 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
  • CloseAll(): Closes all active tables associated with the database
  • GetTableCount(): Retrieves the number of tables in the database dictionary
  • GetDefaultSqlTableOwner(): Retrieve the current default SQL table owner
  • SetDefaultSqlTableOwner(): Set the default SQL table owner name

In This Section

CTDatabase.CTDatabase

CTDatabase.AddTable

CTDatabase.CloseAll

CTDatabase.Connect

CTDatabase.Create

CTDatabase.CreateDatabase

CTDatabase.DeleteTable

CTDatabase.Disconnect

CTDatabase.Dispose

CTDatabase.DropTable

CTDatabase.FindTable

CTDatabase.FirstTable

CTDatabase.GetDefaultSqlTableOwner

CTDatabase.GetName

CTDatabase.GetPath

CTDatabase.GetTableCount

CTDatabase.GetTableUID

CTDatabase.IsActive

CTDatabase.IsExclusive

CTDatabase.NextTable

CTDatabase.RenameTable

CTDatabase.SetDefaultSqlTableOwner

CTDatabase.SetExclusive

TOCIndex