Revision 82442988
Von Christian Ehringfeld vor mehr als 10 Jahren hinzugefügt
| src/query.cpp | ||
|---|---|---|
|
Query::Query() {
|
||
|
}
|
||
|
|
||
|
Query::~Query() {
|
||
|
}
|
||
|
|
||
|
Query::Query(QStringList from, QList<Expression> where, QList<Join> joins,
|
||
|
QHash<QString, QVariant> params, quint64 limit, quint64 offset,
|
||
|
QList<Expression> select, QStringList groupBy, bool distinct,
|
||
| ... | ... | |
|
distinct = value;
|
||
|
}
|
||
|
|
||
|
void Query::appendFrom(const QString &value) {
|
||
|
if (!this->from.contains(value)) {
|
||
|
this->from.append(value);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
QStringList Query::getFrom() const {
|
||
|
return from;
|
||
|
}
|
||
| ... | ... | |
|
from = value;
|
||
|
}
|
||
|
|
||
|
void Query::appendJoin(const Join &value) {
|
||
|
if (!this->joins.contains(value)) {
|
||
|
this->joins.append(value);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
QStringList Query::getGroupBy() const {
|
||
|
return groupBy;
|
||
|
}
|
||
| ... | ... | |
|
void Query::setOrderBy(const QList<OrderBy> &value) {
|
||
|
orderBy = value;
|
||
|
}
|
||
|
|
||
|
void Query::appendGroupBy(const QString &value) {
|
||
|
if (!this->groupBy.contains(value)) {
|
||
|
this->groupBy.append(value);
|
||
|
}
|
||
|
}
|
||
Auch abrufbar als: Unified diff
...