Revision f7995cd0
Von Christian Ehringfeld vor mehr als 9 Jahren hinzugefügt
src/querybuilder.cpp | ||
---|---|---|
return q;
|
||
}
|
||
|
||
//QSqlQuery QueryBuilder::count(const QSharedPointer<Entity> &entity,
|
||
// bool ignoreID) const {
|
||
// QHash<QString, QVariant> values = EntityHelper::getEntityAttributes(
|
||
// EntityHelper::getMetaProperties(entity.data()),
|
||
// entity);
|
||
// QSqlQuery q = this->database->getQuery(this->selectBase(QStringList(
|
||
// entity->getTablename()),
|
||
// QStringList(this->countFunction())) + this->where(
|
||
// values, this->andKeyword(), ignoreID));
|
||
// this->bindValues(values, q, ignoreID);
|
||
// return q;
|
||
//}
|
||
|
||
QSqlQuery QueryBuilder::count(const QString &tableName) const {
|
||
QSqlQuery q = this->database->getQuery(this->selectBase(QStringList(
|
||
tableName), QStringList(this->countFunction())) + ";");
|
src/querybuilder.h | ||
---|---|---|
qint64 offset = 0);
|
||
QList<QSqlQuery> remove(const QSharedPointer<Entity> &entity) const;
|
||
QSqlQuery findId(const QSharedPointer<Entity> &entity) const;
|
||
//QSqlQuery count(const QSharedPointer<Entity> &entity, bool ignoreID) const;
|
||
QSqlQuery count(const QString &tableName) const;
|
||
QList<QSqlQuery> merge(const QSharedPointer<Entity> &entity) const;
|
||
QList<QSqlQuery> create(const QSharedPointer<Entity> &entity) const;
|
Auch abrufbar als: Unified diff
dead code