Projekt

Allgemein

Profil

Herunterladen als
Herunterladen (1,47 KB) Statistiken
| Zweig: | Revision:
14f9beed Christian Ehringfeld
//#include "mysqlschema.h"
//#include <QSqlQuery>
//using namespace CuteEntityManager;
b0b8dac3 Christian Ehringfeld
14f9beed Christian Ehringfeld
//MysqlSchema::MysqlSchema(std::shared_ptr<Database> database) : Schema(database) {
b0b8dac3 Christian Ehringfeld
14f9beed Christian Ehringfeld
//}
b0b8dac3 Christian Ehringfeld
14f9beed Christian Ehringfeld
//MysqlSchema::~MysqlSchema() {
b0b8dac3 Christian Ehringfeld
14f9beed Christian Ehringfeld
//}
b0b8dac3 Christian Ehringfeld
14f9beed Christian Ehringfeld
//QHash<QString, QString> *MysqlSchema::getTypeMap() {
// if (this->typeMap.data()->empty()) {
24c5480c Christian Ehringfeld
// this->typeMap.data()->insert(TYPE_SMALLINT, "tinyint");
// this->typeMap.data()->insert(TYPE_BOOLEAN, "boolean");
// this->typeMap.data()->insert(TYPE_SMALLINT, "smallint");
// this->typeMap.data()->insert(TYPE_INTEGER, "int");
// this->typeMap.data()->insert(TYPE_BIGINT, "bigint");
// this->typeMap.data()->insert(TYPE_FLOAT, "float");
// this->typeMap.data()->insert(TYPE_DOUBLE, "double");
// this->typeMap.data()->insert(TYPE_FLOAT, "real");
// this->typeMap.data()->insert(TYPE_DECIMAL, "decimal");
// this->typeMap.data()->insert(TYPE_TEXT, "text");
// this->typeMap.data()->insert(TYPE_STRING, "varchar");
// this->typeMap.data()->insert(TYPE_CHAR, "char");
// this->typeMap.data()->insert(TYPE_BINARY, "blob");
// this->typeMap.data()->insert(TYPE_DATETIME, "datetime");
// this->typeMap.data()->insert(TYPE_DATE, "date");
// this->typeMap.data()->insert(TYPE_TIME, "time");
// this->typeMap.data()->insert(TYPE_TIMESTAMP, "timestamp");
14f9beed Christian Ehringfeld
// }
// return this->typeMap.data();
//}

////QString Database::mysqlTableList() {
//// return "SHOW TABLES;";
////}