Herunterladen als
root/src/schema/mysqlschema.h @ 827458ed
829c3e69 | Christian Ehringfeld | #ifndef MYSQLSCHEMA_H
|
|
#define MYSQLSCHEMA_H
|
|||
#include "../schema.h"
|
|||
namespace CuteEntityManager {
|
|||
class TableSchema;
|
|||
class MysqlSchema : public Schema {
|
|||
public:
|
|||
5ca225ed | Christian Ehringfeld | explicit MysqlSchema(QSharedPointer<Database> database);
|
|
829c3e69 | Christian Ehringfeld | QSharedPointer<QHash<QString, QString> > getTypeMap() override;
|
|
protected:
|
|||
QStringList findTableNames(QString schema = "") override;
|
|||
QHash<QString, QStringList> findUniqueIndexes(const
|
|||
QSharedPointer<TableSchema>
|
|||
&table) override;
|
|||
void findConstraints(const QSharedPointer<TableSchema> &ts) override;
|
|||
QSharedPointer<TableSchema> loadTableSchema(QString name) override;
|
|||
void resolveTableNames(const QSharedPointer<TableSchema> &ts, QString name);
|
|||
};
|
|||
}
|
|||
#endif // MYSQLSCHEMA_H
|