MySQL 5.6.14 Source Code Document
|
#include <NdbQueryBuilder.hpp>
Public Member Functions | |
void | destroy () |
const NdbQueryDef * | prepare () |
NdbConstOperand * | constValue (Int32 value) |
NdbConstOperand * | constValue (Uint32 value) |
NdbConstOperand * | constValue (Int64 value) |
NdbConstOperand * | constValue (Uint64 value) |
NdbConstOperand * | constValue (double value) |
NdbConstOperand * | constValue (const char *value) |
NdbConstOperand * | constValue (const void *value, Uint32 len) |
NdbParamOperand * | paramValue (const char *name=0) |
NdbLinkedOperand * | linkedValue (const NdbQueryOperationDef *, const char *attr) |
const NdbQueryLookupOperationDef * | readTuple (const NdbDictionary::Table *, const NdbQueryOperand *const keys[], const NdbQueryOptions *options=0, const char *ident=0) |
const NdbQueryLookupOperationDef * | readTuple (const NdbDictionary::Index *, const NdbDictionary::Table *, const NdbQueryOperand *const keys[], const NdbQueryOptions *options=0, const char *ident=0) |
const NdbQueryTableScanOperationDef * | scanTable (const NdbDictionary::Table *, const NdbQueryOptions *options=0, const char *ident=0) |
const NdbQueryIndexScanOperationDef * | scanIndex (const NdbDictionary::Index *, const NdbDictionary::Table *, const NdbQueryIndexBound *bound=0, const NdbQueryOptions *options=0, const char *ident=0) |
Static Public Member Functions | |
static NdbQueryBuilder * | create () |
Friends | |
class | NdbQueryBuilderImpl |
Error Handling | |
const NdbError & | getNdbError () const |
NdbQueryBuilderImpl & | getImpl () const |
The Query builder constructs a NdbQueryDef which is a collection of (possibly linked) NdbQueryOperationDefs Each NdbQueryOperationDef may use NdbQueryOperands to specify keys and bounds.
LIFETIME:
All NdbQueryOperand and NdbQueryOperationDef objects created in the context of a NdbQueryBuilder has a lifetime restricted by:
A single NdbQueryOperand or NdbQueryOperationDef object may be used/referrer multiple times during the build process whenever we need a reference to the same value/node during the build phase.
Definition at line 363 of file NdbQueryBuilder.hpp.
|
static |
Allocate an instance.
Definition at line 692 of file NdbQueryBuilder.cpp.
void NdbQueryBuilder::destroy | ( | ) |
Release this object and any resources held by it.
Definition at line 715 of file NdbQueryBuilder.cpp.
const NdbError & NdbQueryBuilder::getNdbError | ( | ) | const |
Get error object with information about the latest error.
Definition at line 733 of file NdbQueryBuilder.cpp.