Kexi API Documentation (2.0 alpha)

Kross::KexiDB::KexiDBParser Class Reference

#include <kexidbparser.h>

Inheritance diagram for Kross::KexiDB::KexiDBParser:

Class 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


Constructor & Destructor Documentation

KexiDBParser::KexiDBParser KexiDBConnection connection,
::KexiDB::Parser parser
 

Definition at line 29 of file kexidbparser.cpp.

KexiDBParser::~KexiDBParser  )  [virtual]
 

Definition at line 49 of file kexidbparser.cpp.


Member Function Documentation

const QString KexiDBParser::getClassName  )  const [virtual]
 

Definition at line 53 of file kexidbparser.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:51:07 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003