23#include <tqvaluelist.h>
26#include <kexidb/fieldlist.h>
27#include <kexidb/schemadata.h>
28#include <kexidb/relationship.h>
46 typedef TQPtrList<IndexSchema> List;
47 typedef TQPtrListIterator<IndexSchema> ListIterator;
83 TableSchema* table() const;
105 void attachRelationship(Relationship *rel);
115 void detachRelationship(Relationship *rel);
132 bool isAutoGenerated() const;
136 bool isPrimaryKey() const;
141 void setPrimaryKey( bool set);
145 bool isUnique() const;
151 void setUnique( bool set);
154 virtual TQString debugString();
169 void setAutoGenerated( bool set);
176 void setForeignKey( bool set);
180 void attachRelationship(Relationship *rel, bool ownedByMaster);
198 bool m_isAutoGenerated : 1;
199 bool m_isForeignKey : 1;
201 friend class Connection;
202 friend class TableSchema;
203 friend class QuerySchema;
204 friend class Relationship;
Provides database connection, allowing queries and data modification.
FieldList(bool owner=false)
Relationship::List m_master_rels
TableSchema * table() const
Relationship::List m_master_owned_rels table on that index is built
Relationship::List * detailsRelationships()
Relationship::List m_details_rels
Relationship::List * masterRelationships()
IndexSchema(TableSchema *tableSchema)
virtual FieldList & addField(Field *field)
KexiDB::QuerySchema provides information about database query.
High-level database connectivity library with database backend drivers.
|