Revision 3fd96253
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
src/querybuilder.cpp | ||
---|---|---|
const QHash<QString, QString> &tableDefinition) const {
|
||
bool first = true;
|
||
QString s = "CREATE TABLE ";
|
||
s.append(this->schema->quoteTableName(tableName).append(" (\n"));
|
||
s.append(this->schema->quoteTableName(tableName).append(" ("));
|
||
auto i = tableDefinition.constBegin();
|
||
while (i != tableDefinition.constEnd()) {
|
||
if (first) {
|
||
... | ... | |
i.value()));
|
||
++i;
|
||
}
|
||
s.append("\n);");
|
||
s.append(");");
|
||
return s;
|
||
}
|
||
|
Auch abrufbar als: Unified diff
update, many to many is not fully working, but persisting works