MySQL 5.6.14 Source Code Document
|
Represents a schema transaction. More...
#include <NdbSchemaCon.hpp>
Public Member Functions | |
int | execute () |
NdbSchemaOp * | getNdbSchemaOp () |
const NdbError & | getNdbError () const |
Static Public Member Functions | |
static NdbSchemaCon * | startSchemaTrans (Ndb *pNdb) |
static void | closeSchemaTrans (NdbSchemaCon *pSchCon) |
Friends | |
class | Ndb |
class | NdbSchemaOp |
Represents a schema transaction.
When creating a new table, the first step is to get a NdbSchemaCon object to represent the schema transaction. This is done by calling Ndb::startSchemaTransaction.
The next step is to get a NdbSchemaOp object by calling NdbSchemaCon::getNdbSchemaOp. The NdbSchemaOp object then has methods to define the table and its attributes.
Finally, the NdbSchemaCon::execute method inserts the table into the database.
Definition at line 51 of file NdbSchemaCon.hpp.
int NdbSchemaCon::execute | ( | ) |
Execute a schema transaction.
Definition at line 108 of file NdbSchemaCon.cpp.
const NdbError & NdbSchemaCon::getNdbError | ( | ) | const |
NdbSchemaOp * NdbSchemaCon::getNdbSchemaOp | ( | ) |
Get a schemaoperation.
Definition at line 77 of file NdbSchemaCon.cpp.
|
friend |
Reciver(s)
Definition at line 53 of file NdbSchemaCon.hpp.