kexi

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

#include <kexidbschema.h>

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

Kross::KexiDB::KexiDBQuerySchema Kross::KexiDB::KexiDBTableSchema 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 informations.
 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)

Protected Attributes

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

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