Revision 2ee5022f
Von Christian Ehringfeld vor mehr als 10 Jahren hinzugefügt
| src/querybuilder.cpp | ||
|---|---|---|
|
|
||
|
QString QueryBuilder::between(QString colName, QString valName1,
|
||
|
QString valName2, bool notOp) {
|
||
|
return "(" + this->schema->quoteColumnName(colName) + " " + this->between() +
|
||
|
return "(" + this->schema->quoteColumnName(colName) + (notOp ? (" " +
|
||
|
this->notKeyword() + " ") : " ") + this->between() +
|
||
|
" " + this->placeHolder(valName1) + " " + this->andKeyword() + " " +
|
||
|
this->placeHolder(valName2) + ")";
|
||
|
}
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
|
||
|
QSqlQuery QueryBuilder::generateQuery(const Query &query) const {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
void QueryBuilder::where(Query &query, QString column, QVariant value) {
|
||
|
QString placeholder = column + "_where";
|
||
|
query.appendCondition(this->schema->quoteColumnName(column) + "=" +
|
||
Auch abrufbar als: Unified diff
query stuff