kexi
KexiDB::Parser Class Reference
#include <parser.h>
Detailed Description
Parser for sql statements.
Definition at line 93 of file parser.h.
Public Types | |
enum | OPCode { OP_None = 0, OP_Error, OP_CreateTable, OP_AlterTable, OP_Select, OP_Insert, OP_Update, OP_Delete } |
Public Member Functions | |
Parser (Connection *connection) | |
~Parser () | |
bool | parse (const QString &statement) |
void | clear () |
OPCode | operation () const |
QString | operationString () const |
TableSchema * | table () |
QuerySchema * | query () |
Connection * | db () const |
ParserError | error () const |
QString | statement () const |
void | setOperation (OPCode op) |
void | createTable (const char *t) |
void | setQuerySchema (QuerySchema *query) |
QuerySchema * | select () const |
void | setError (const ParserError &err) |
bool | isReservedKeyword (const char *str) |
Protected Member Functions | |
void | init () |
Protected Attributes | |
ParserError | m_error |
ParserPrivate * | d |
Member Enumeration Documentation
|
The operation-code of the statement.
|
Constructor & Destructor Documentation
|
constructs an empty object of the parser
Definition at line 31 of file parser.cpp. |
Member Function Documentation
|
rests results
Definition at line 125 of file parser.cpp. |
|
Definition at line 71 of file parser.cpp. |
|
returns detailed information about last error. If no error occured ParserError isNull() Definition at line 73 of file parser.cpp. |
|
return true if the
Definition at line 110 of file parser.cpp. |
|
Definition at line 42 of file parser.cpp. |
|
Definition at line 45 of file parser.cpp. |
|
clears previous results and runs the parser
Definition at line 116 of file parser.cpp. |
|
Definition at line 69 of file parser.cpp. |
|
Definition at line 75 of file parser.cpp. |
|
Definition at line 67 of file parser.cpp. |
The documentation for this class was generated from the following files: