NdbDictionary::NdbDictionary::Dictionary Class Reference
Dictionary for defining and retreiving meta data.
More...
#include <NdbDictionary.hpp>
List of all members.
Classes
- class List
- Structure for retrieving lists of object names. More...
Public Member Functions
|
|
- const Table * getTable (const char *name) const
- const Index * getIndex (const char *indexName, const char *tableName) const
- int listIndexes (List &list, const char *tableName)
-
int listIndexes (List &list, const char *tableName) const
|
|
These methods should normally not be used in an application as the result will not be visible from the MySQL Server
|
|
These methods should normally not be used in an application as the result will not be visible from the MySQL Server
|
|
-
int createLogfileGroup (const LogfileGroup &, ObjectId *=0)
-
int dropLogfileGroup (const LogfileGroup &)
-
LogfileGroup getLogfileGroup (const char *name)
-
int createTablespace (const Tablespace &, ObjectId *=0)
-
int dropTablespace (const Tablespace &)
-
Tablespace getTablespace (const char *name)
-
Tablespace getTablespace (Uint32 tablespaceId)
-
int createDatafile (const Datafile &, bool overwrite_existing=false, ObjectId *=0)
-
int dropDatafile (const Datafile &)
-
Datafile getDatafile (Uint32 node, const char *path)
-
int createUndofile (const Undofile &, bool overwrite_existing=false, ObjectId *=0)
-
int dropUndofile (const Undofile &)
-
Undofile getUndofile (Uint32 node, const char *path)
Detailed Description
Dictionary for defining and retreiving meta data.
Member Function Documentation
int NdbDictionary::NdbDictionary::Dictionary::createEvent |
( |
const Event & |
event |
) |
|
Create event given defined Event instance
- Parameters:
-
- Returns:
- 0 if successful otherwise -1.
int NdbDictionary::NdbDictionary::Dictionary::createIndex |
( |
const Index & |
index |
) |
|
Create index given defined Index instance
- Parameters:
-
- Returns:
- 0 if successful otherwise -1.
int NdbDictionary::NdbDictionary::Dictionary::createTable |
( |
const Table & |
table |
) |
|
Create defined table given defined Table instance
- Parameters:
-
- Returns:
- 0 if successful otherwise -1.
int NdbDictionary::NdbDictionary::Dictionary::dropEvent |
( |
const char * |
eventName |
) |
|
Drop event with given name
- Parameters:
-
| eventName | Name of event to drop. |
- Returns:
- 0 if successful otherwise -1.
int NdbDictionary::NdbDictionary::Dictionary::dropIndex |
( |
const char * |
indexName, |
|
|
const char * |
tableName | |
|
) |
| | |
Drop index with given name
- Parameters:
-
| indexName | Name of index to drop. |
| tableName | Name of table that index belongs to. |
- Returns:
- 0 if successful otherwise -1.
int NdbDictionary::NdbDictionary::Dictionary::dropTable |
( |
const char * |
name |
) |
|
Drop table given table name
- Parameters:
-
| name | Name of table to drop |
- Returns:
- 0 if successful otherwise -1.
int NdbDictionary::NdbDictionary::Dictionary::dropTable |
( |
Table & |
table |
) |
|
Drop table given retrieved Table instance
- Parameters:
-
- Returns:
- 0 if successful otherwise -1.
const Event* NdbDictionary::NdbDictionary::Dictionary::getEvent |
( |
const char * |
eventName |
) |
|
Get event with given name.
- Parameters:
-
| eventName | Name of event to get. |
- Returns:
- an Event if successful, otherwise NULL.
const Index* NdbDictionary::NdbDictionary::Dictionary::getIndex |
( |
const char * |
indexName, |
|
|
const char * |
tableName | |
|
) |
| | const |
Get index with given name, NULL if undefined
- Parameters:
-
| indexName | Name of index to get. |
| tableName | Name of table that index belongs to. |
- Returns:
- index if successful, otherwise 0.
struct NdbError& NdbDictionary::NdbDictionary::Dictionary::getNdbError |
( |
|
) |
const [read] |
Get the latest error
- Returns:
- Error object.
const Table* NdbDictionary::NdbDictionary::Dictionary::getTable |
( |
const char * |
name |
) |
const |
Get table with given name, NULL if undefined
- Parameters:
-
| name | Name of table to get |
- Returns:
- table if successful otherwise NULL.
int NdbDictionary::NdbDictionary::Dictionary::listIndexes |
( |
List & |
list, |
|
|
const char * |
tableName | |
|
) |
| | |
Fetch list of indexes of given table.
- Parameters:
-
| list | Reference to list where to store the listed indexes |
| tableName | Name of table that index belongs to. |
- Returns:
- 0 if successful, otherwise -1
int NdbDictionary::NdbDictionary::Dictionary::listObjects |
( |
List & |
list, |
|
|
Object::Type |
type = Object::TypeUndefined | |
|
) |
| | |
Fetch list of all objects, optionally restricted to given type.
- Parameters:
-
| list | List of objects returned in the dictionary |
| type | Restrict returned list to only contain objects of this type |
- Returns:
- -1 if error.
void NdbDictionary::NdbDictionary::Dictionary::removeCachedIndex |
( |
const char * |
index, |
|
|
const char * |
table | |
|
) |
| | |
Remove index from local cache
void NdbDictionary::NdbDictionary::Dictionary::removeCachedTable |
( |
const char * |
table |
) |
|
Remove table from local cache