Kexi API Documentation (2.0 alpha)

Kross::KexiDB::KexiDBSchema< T > Class Template Reference

#include <kexidbschema.h>

Inheritance diagram for Kross::KexiDB::KexiDBSchema< T >:

Class List of all members.

Detailed Description

template<class T>
class Kross::KexiDB::KexiDBSchema< T >

The KexiDBSchema object provides common functionality for schemas like KexiDBTableSchema or KexiDBQuerySchema.

Example (in Python) ;

 # Get the tableschema from a KexiDBConnection object.
 tableschema = connection.tableSchema("dept")
 # Print some information.
 print "table=%s description=%s" % (tableschema.name(), tableschema.description())
 # Get the "SELECT * FROM dept;" queryschema for the table.
 queryschema = tableschema.query()
 # Walk through the fields/columns the queryschema has and print the fieldnames.
 for field in queryschema.fieldlist().fields():
     print "fieldname=%s" % field.name()
 # Execute the query. The returned KexiDBCursor object could be used then to iterate through the result.
 cursor = connection.executeQuerySchema(queryschema)

Definition at line 59 of file kexidbschema.h.

Public Member Functions

 KexiDBSchema (const QString &name,::KexiDB::SchemaData *schema,::KexiDB::FieldList *fieldlist)
virtual ~KexiDBSchema ()

Protected Attributes

::KexiDB::SchemaDatam_schema
::KexiDB::FieldListm_fieldlist


Constructor & Destructor Documentation

template<class T>
KexiDBSchema::KexiDBSchema const QString name,
::KexiDB::SchemaData schema,
::KexiDB::FieldList fieldlist
 

Definition at line 36 of file kexidbschema.cpp.

References description.

template<class T>
KexiDBSchema::~KexiDBSchema< T >  )  [virtual]
 


Member Data Documentation

template<class T>
::KexiDB::FieldList* Kross::KexiDB::KexiDBSchema< T >::m_fieldlist [protected]
 

Definition at line 87 of file kexidbschema.h.

template<class T>
::KexiDB::SchemaData* Kross::KexiDB::KexiDBSchema< T >::m_schema [protected]
 

Definition at line 86 of file kexidbschema.h.


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