1.3.2 Application Program Basics

1.3.2.1 Using Transactions
1.3.2.2 Synchronous Transactions
1.3.2.3 Operations

The main structure of an application program is as follows:

  1. Connect to a cluster using the Ndb_cluster_connection object.

  2. Initiate a database connection by constructing and initialising one or more Ndb objects.

  3. Identify the tables, columns, and indexes on which you wish to operate, using NdbDictionary and one or more of its subclasses.

  4. Define and execute transactions using the NdbTransaction class.

  5. Delete Ndb objects.

  6. Terminate the connection to the cluster (terminate an instance of Ndb_cluster_connection).