kexi

Kross::KexiDB::KexiDBParser Class Reference

#include <kexidbparser.h>

List of all members.


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.


Public Member Functions

 KexiDBParser (KexiDBConnection *connection,::KexiDB::Parser *parser)
virtual ~KexiDBParser ()
virtual const QString getClassName () const

The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys