The NDB API is an NDB Cluster application interface that implements transactions. It consists of the following fundamental classes:
Ndb_cluster_connection
represents a connection to a cluster.Ndb
is the main class, and represents a connection to a database.NdbDictionary
provides meta-information about tables and attributes.NdbTransaction
represents a transaction.NdbOperation
represents an operation using a primary key.NdbScanOperation
represents an operation performing a full table scan.NdbIndexOperation
represents an operation using a unique hash index.NdbIndexScanOperation
represents an operation performing a scan using an ordered index.NdbRecAttr
represents an attribute value.
In addition, the NDB API defines an
NdbError
structure, which
contains the specification for an error.
It is also possible to receive events triggered when data in the
database is changed. This is accomplished through the
NdbEventOperation
class.
The NDB
event notification API is not
supported prior to MySQL 5.1.
For more information about these classes as well as some additional auxiliary classes not listed here, see Section 2.3, “NDB API Classes, Interfaces, and Structures”.