This creates an instance of
Ndb, which represents a
connection to the NDB Cluster. All NDB API applications should
begin with the creation of at least one
Ndb object. This requires the
creation of at least one instance of
serves as a container for a cluster connection string.
Ndb ( Ndb_cluster_connection* ndb_cluster_connection, const char* catalogName = "", const char* schemaName = "def" )
Ndb class constructor can
take up to 3 parameters, of which only the first is required:
ndb_cluster_connectionis an instance of
Ndb_cluster_connection, which represents a cluster connection string. (See Section 2.3.17, “The Ndb_cluster_connection Class”.)
Prior to NDB 7.3.8 and NDB 7.4.3, it was possible to delete the
Ndb_cluster_connectionused to create a given instance of
Ndbwithout first deleting the dependent
Ndbobject. (Bug #19999242)
catalogNameis an optional parameter providing a namespace for the tables and indexes created in any connection from the
This is equivalent to what mysqld considers “the database”.
The default value for this parameter is an empty string.
schemaNameprovides an additional namespace for the tables and indexes created in a given catalog.
The default value for this parameter is the string “def”.