MySQL 5.6.14 Source Code Document
|
#include <NdbQueryBuilder.hpp>
Public Types | |
enum | QueryType { LookupQuery, SingleScanQuery, MultiScanQuery } |
Public Member Functions | |
Uint32 | getNoOfOperations () const |
const NdbQueryOperationDef * | getQueryOperation (const char *ident) const |
const NdbQueryOperationDef * | getQueryOperation (Uint32 index) const |
bool | isScanQuery () const |
QueryType | getQueryType () const |
void | destroy () const |
NdbQueryDefImpl & | getImpl () const |
void | print () const |
Friends | |
class | NdbQueryDefImpl |
NdbQueryDef represents a ::prepare()'d object from NdbQueryBuilder.
The NdbQueryDef is reusable in the sense that it may be executed multiple times. It is valid until it is explicitely released().
The NdbQueryDef must be keept alive until the last thread which executing a query based on this NdbQueryDef has called NdbQuery::close().
A NdbQueryDef is scheduled for execution by appending it to an open transaction - optionally together with a set of parameters specifying the actuall values required by ::execute() (ie. Lookup an bind keys).
Definition at line 490 of file NdbQueryBuilder.hpp.
The different types of query types supported
LookupQuery |
All operations are PrimaryKey- or UniqueIndexAccess. |
SingleScanQuery |
Root is Table- or OrderedIndexScan, childs are 'lookup'. |
MultiScanQuery |
Root, and some childs are scans. |
Definition at line 499 of file NdbQueryBuilder.hpp.
void NdbQueryDef::print | ( | void | ) | const |
Print the query in a semi human readable form
Definition at line 338 of file NdbQueryBuilder.cpp.