18 #ifndef QDJANGO_WHERE_H
19 #define QDJANGO_WHERE_H
21 #include <QSharedDataPointer>
24 #include "QDjango_p.h"
28 class QDjangoWherePrivate;
74 void bindValues(QDjangoQuery &query)
const;
77 QString sql(
const QSqlDatabase &db)
const;
78 QString toString()
const;
81 QSharedDataPointer<QDjangoWherePrivate> d;
82 friend class QDjangoCompiler;
The QDjangoWhere class expresses an SQL constraint.
Definition: QDjangoWhere.h:41
Operation
A comparison operation on a database column value.
Definition: QDjangoWhere.h:44
@ Contains
Returns true if the column value contains the given value (strings only).
Definition: QDjangoWhere.h:54
@ GreaterOrEquals
Returns true if the column value is greater or equal to the given value.
Definition: QDjangoWhere.h:50
@ StartsWith
Returns true if the column value starts with the given value (strings only).
Definition: QDjangoWhere.h:52
@ INotEquals
Returns true if the column value is not equal to the given value (case-insensitive).
Definition: QDjangoWhere.h:58
@ LessThan
Returns true if the column value is less than the given value.
Definition: QDjangoWhere.h:49
@ EndsWith
Returns true if the column value ends with the given value (strings only).
Definition: QDjangoWhere.h:53
@ GreaterThan
Returns true if the column value is greater than the given value.
Definition: QDjangoWhere.h:48
@ NotEquals
Returns true if the column value is not equal to the given value.
Definition: QDjangoWhere.h:47
@ IStartsWith
Returns true if the column value starts with the given value (strings only, case-insensitive).
Definition: QDjangoWhere.h:59
@ IEquals
Returns true if the column value is equal to the given value (case-insensitive)
Definition: QDjangoWhere.h:57
@ IsIn
Returns true if the column value is one of the given values.
Definition: QDjangoWhere.h:55
@ Equals
Returns true if the column value is equal to the given value.
Definition: QDjangoWhere.h:46
@ LessOrEquals
Returns true if the column value is less or equal to the given value.
Definition: QDjangoWhere.h:51
@ IEndsWith
Returns true if the column value ends with the given value (strings only, case-insensitive).
Definition: QDjangoWhere.h:60
@ None
No comparison, always returns true.
Definition: QDjangoWhere.h:45
@ IsNull
Returns true if the column value is null.
Definition: QDjangoWhere.h:56