21#include <connection.h>
22#include <tableschema.h>
27extern const char * reserved_keywords[];
32 : d(new ParserPrivate)
47 switch(( OPCode)d->operation) {
77void Parser::setOperation(OPCode op) { d->operation = op; }
79QuerySchema *Parser::select() const { return d->select; }
81void Parser::setError( const ParserError &err) { d->error = err; }
84Parser::createTable( const char *t)
105#define INS(p) d->reservedKeywords.insert(p, (char*)1, 0)
107 d->initialized = true;
112 return d->reservedKeywords.find(str);
124 bool res = parseData( this, statement.utf8());
Provides database connection, allowing queries and data modification.
Provides detailed i18n'ed error description about the Parser .
~ParserError() Destructor.
ParserError() Empty constructor.
Parser for SQL statements.
TQString operationString() const
bool parse(const TQString &statement) clears previous results and runs the parser
ParserError error() const
Parser(Connection *connection) constructs an empty object of the parser
void clear() rests results
TQString statement() const
OPCode The operation-code of the statement.
@ OP_Select Alter an existing table.
@ OP_Update Insert new content.
@ OP_Insert Query-statement.
@ OP_CreateTable Error while parsing.
@ OP_AlterTable Create a table.
@ OP_Delete Update existing content.
@ OP_Error No statement parsed or reseted.
bool isReservedKeyword(const char *str)
KexiDB::QuerySchema provides information about database query.
High-level database connectivity library with database backend drivers.
|