Herunterladen als
root/src/schema/sqliteschema.h @ 1e213c09
4d58ef6a | Christian Ehringfeld | #ifndef SQLITESCHEMA_H
|
|
#define SQLITESCHEMA_H
|
|||
#include "../schema.h"
|
|||
namespace CuteEntityManager {
|
|||
14f9beed | Christian Ehringfeld | class TableSchema;
|
|
4d58ef6a | Christian Ehringfeld | class SqliteSchema : public Schema {
|
|
426974c6 | Christian Ehringfeld | public:
|
|
14f9beed | Christian Ehringfeld | SqliteSchema(QSharedPointer<Database> database);
|
|
4d58ef6a | Christian Ehringfeld | ~SqliteSchema();
|
|
24425325 | Christian Ehringfeld | QSharedPointer<QHash<QString, QString> > getTypeMap();
|
|
protected:
|
|||
14f9beed | Christian Ehringfeld | ||
virtual QStringList findTableNames(QString schema = "");
|
|||
virtual QHash<QString, QStringList> findUniqueIndexes(const QSharedPointer<TableSchema> &table);
|
|||
virtual void findConstraints(const QSharedPointer<TableSchema> &ts);
|
|||
virtual bool findColumns(const QSharedPointer<TableSchema> &ts);
|
|||
virtual QSharedPointer<TableSchema> loadTableSchema(QString name);
|
|||
4d58ef6a | Christian Ehringfeld | };
|
|
}
|
|||
#endif // SQLITESCHEMA_H
|