Kross::KexiDB::KexiDBParser Class Reference
#include <kexidbparser.h>
Inherits Kross::Api::Class< KexiDBParser >.
Public Member Functions | |
| KexiDBParser (KexiDBConnection *connection, ::KexiDB::Parser *parser) | |
| virtual const TQString | getClassName () const |
Detailed Description
The KexiDBParser could be used to parse SQL-statements.
Example (in Python) ;
# First we need a parser object.
parser = connection.parser()
# Parse a SQL-statement.
parser.parse("SELECT * from table1")
# The operation could be e.g. SELECT or INSERT.
if parser.operation() == 'Error':
raise parser.errorMsg()
# Print some feedback.
print "Successfully parsed the SQL-statement %s" % parser.statement()
Definition at line 55 of file kexidbparser.h.
Constructor & Destructor Documentation
◆ KexiDBParser()
| KexiDBParser::KexiDBParser | ( | KexiDBConnection * | connection, |
| ::KexiDB::Parser * | parser | ||
| ) |
Definition at line 29 of file kexidbparser.cpp.
◆ ~KexiDBParser()
|
virtual |
Definition at line 49 of file kexidbparser.cpp.
Member Function Documentation
◆ getClassName()
|
virtual |
Definition at line 53 of file kexidbparser.cpp.
The documentation for this class was generated from the following files:
