Revision 14f9beed
Von Christian Ehringfeld vor etwa 9 Jahren hinzugefügt
src/entitymanager.cpp | ||
---|---|---|
}
|
||
|
||
inline bool EntityManager::checkTable(Entity *entity) {
|
||
bool rc = true;
|
||
if (!this->db->containsTable(entity->getTablename())) {
|
||
qDebug() << "Tabelle" << entity->getTablename() << "existiert noch nicht.";
|
||
if (this->createTable(entity)) {
|
||
this->db->refreshTableList();
|
||
rc = this->db->containsTable(entity->getTablename());
|
||
}
|
||
}
|
||
return rc;
|
||
// bool rc = true;
|
||
// if (!this->db->containsTable(entity->getTablename())) {
|
||
// qDebug() << "Tabelle" << entity->getTablename() << "existiert noch nicht.";
|
||
// if (this->createTable(entity)) {
|
||
// this->db->refreshTableList();
|
||
// rc = this->db->containsTable(entity->getTablename());
|
||
// }
|
||
// }
|
||
// return rc;
|
||
}
|
||
|
||
QString EntityManager::createConnection() {
|
Auch abrufbar als: Unified diff
update