NdbDictionary Class Reference
#include <NdbDictionary.hpp>
List of all members.
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.
Classes
Documentation generated Mon Sep 18 19:35:01 2006 from mysql source files.
© 2003-2004
MySQL AB