NdbDictionary Class Reference
Data dictionary class.
More...
#include <NdbDictionary.hpp>
List of all members.
Classes
- struct AutoGrowSpecification
- class Column
- Represents a column in an NDB Cluster table. More...
- class Datafile
- class Dictionary
- Dictionary for defining and retreiving meta data. More...
- class Event
- Represents an Event in NDB Cluster. More...
- class Index
- Represents an index in an NDB Cluster. More...
- class LogfileGroup
- class Object
- Meta information about a database object (a table, index, etc). More...
- class ObjectId
- class Table
- Represents a table in NDB Cluster. More...
- class Tablespace
- class Undofile
Detailed Description
Data dictionary class.
The preferred and supported way to create and drop tables and indexes in ndb is through the MySQL Server (see MySQL reference Manual, section MySQL Cluster).
Tables and indexes that are created directly through the NdbDictionary class can not be viewed from the MySQL Server. Dropping indexes directly via the NdbApi will cause inconsistencies if they were originally created from a MySQL Cluster.
This class supports schema data enquiries such as:
- Enquiries about tables (Dictionary::getTable, Table::getNoOfColumns, Table::getPrimaryKey, and Table::getNoOfPrimaryKeys)
- Enquiries about indexes (Dictionary::getIndex, Index::getNoOfColumns, and Index::getColumn)
This class supports schema data definition such as:
- Creating tables (Dictionary::createTable) and table columns
- Dropping tables (Dictionary::dropTable)
- Creating secondary indexes (Dictionary::createIndex)
- Dropping secondary indexes (Dictionary::dropIndex)
NdbDictionary has several help (inner) classes to support this:
- NdbDictionary::Dictionary the dictionary handling dictionary objects
- NdbDictionary::Table for creating tables
- NdbDictionary::Column for creating table columns
- NdbDictionary::Index for creating secondary indexes
See ndbapi_simple_index.cpp for details of usage.