class Lookup(Expression): (source)
Known subclasses: django.db.models.lookups.BuiltinLookup
, django.db.models.lookups.PostgresOperatorLookup
, django.db.models.lookups.YearLookup
Undocumented
Method | __eq__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | apply |
Undocumented |
Method | as |
Undocumented |
Method | batch |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | process |
Undocumented |
Method | process |
Undocumented |
Method | resolve |
Provide the chance to do any preprocessing or validation before being added to the query. |
Method | rhs |
Undocumented |
Method | select |
Custom format for select clauses. For example, EXISTS expressions need to be wrapped in CASE WHEN on Oracle. |
Method | set |
Undocumented |
Class Variable | can |
Undocumented |
Class Variable | lookup |
Undocumented |
Class Variable | prepare |
Undocumented |
Instance Variable | bilateral |
Undocumented |
Instance Variable | lhs |
Undocumented |
Instance Variable | rhs |
Undocumented |
Property | identity |
Undocumented |
Property | output |
Return the output type of this expressions. |
Inherited from BaseExpression
(via Expression
):
Method | __getstate__ |
Undocumented |
Method | as |
Responsible for returning a (sql, [params]) tuple to be included in the current query. |
Method | asc |
Undocumented |
Method | copy |
Undocumented |
Method | desc |
Undocumented |
Method | flatten |
Recursively yield this expression and all subexpressions, in depth-first order. |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Return the underlying field types used by this aggregate. |
Method | get |
Undocumented |
Method | prefix |
Undocumented |
Method | relabeled |
Undocumented |
Method | replace |
Undocumented |
Method | reverse |
Undocumented |
Class Variable | filterable |
Undocumented |
Class Variable | is |
Undocumented |
Class Variable | window |
Undocumented |
Property | conditional |
Undocumented |
Property | contains |
Undocumented |
Property | contains |
Undocumented |
Property | contains |
Undocumented |
Property | convert |
Expressions provide their own converters because users have the option of manually specifying the output_field which may be a different type from the one the database returns. |
Property | field |
Undocumented |
Static Method | _convert |
Undocumented |
Method | _parse |
Undocumented |
Method | _resolve |
Attempt to infer the output type of the expression. |
Class Variable | _output |
Undocumented |
Property | _output |
Return the output field of this expression, or None if _resolve_output_field() didn't return an output type. |
Inherited from Combinable
(via Expression
, BaseExpression
):
Method | __add__ |
Undocumented |
Method | __and__ |
Undocumented |
Method | __mod__ |
Undocumented |
Method | __mul__ |
Undocumented |
Method | __neg__ |
Undocumented |
Method | __or__ |
Undocumented |
Method | __pow__ |
Undocumented |
Method | __radd__ |
Undocumented |
Method | __rand__ |
Undocumented |
Method | __rmod__ |
Undocumented |
Method | __rmul__ |
Undocumented |
Method | __ror__ |
Undocumented |
Method | __rpow__ |
Undocumented |
Method | __rsub__ |
Undocumented |
Method | __rtruediv__ |
Undocumented |
Method | __rxor__ |
Undocumented |
Method | __sub__ |
Undocumented |
Method | __truediv__ |
Undocumented |
Method | __xor__ |
Undocumented |
Method | bitand |
Undocumented |
Method | bitleftshift |
Undocumented |
Method | bitor |
Undocumented |
Method | bitrightshift |
Undocumented |
Method | bitxor |
Undocumented |
Constant | ADD |
Undocumented |
Constant | BITAND |
Undocumented |
Constant | BITLEFTSHIFT |
Undocumented |
Constant | BITOR |
Undocumented |
Constant | BITRIGHTSHIFT |
Undocumented |
Constant | BITXOR |
Undocumented |
Constant | DIV |
Undocumented |
Constant | MOD |
Undocumented |
Constant | MUL |
Undocumented |
Constant | POW |
Undocumented |
Constant | SUB |
Undocumented |
Method | _combine |
Undocumented |
django.contrib.postgres.fields.ranges.RangeContainedBy
, django.db.models.lookups.BuiltinLookup
Undocumented
Provide the chance to do any preprocessing or validation before being added to the query. Arguments: * query: the backend query implementation * allow_joins: boolean allowing or denying use of joins in this query * reuse: a set of reusable joins for multijoins * summarize: a terminal aggregate clause * for_save: whether this expression about to be used in a save or update Return: an Expression to be added to the query.
Custom format for select clauses. For example, EXISTS expressions need to be wrapped in CASE WHEN on Oracle.
django.contrib.postgres.fields.ranges.AdjacentToLookup
, django.contrib.postgres.fields.ranges.DateTimeRangeContains
, django.contrib.postgres.fields.ranges.FullGreaterThan
, django.contrib.postgres.fields.ranges.FullyLessThan
, django.contrib.postgres.fields.ranges.NotGreaterThan
, django.contrib.postgres.fields.ranges.NotLessThan
, django.contrib.postgres.fields.ranges.RangeContainedBy
, django.contrib.postgres.lookups.ContainedBy
, django.contrib.postgres.lookups.DataContains
, django.contrib.postgres.lookups.HasKey
, django.contrib.postgres.lookups.HasKeys
, django.contrib.postgres.lookups.Overlap
, django.contrib.postgres.lookups.TrigramSimilar
, django.contrib.postgres.lookups.TrigramWordSimilar
, django.db.models.fields.json.ContainedBy
, django.db.models.fields.json.DataContains
, django.db.models.fields.json.HasKey
, django.db.models.fields.json.HasKeys
, django.db.models.lookups.Contains
, django.db.models.lookups.EndsWith
, django.db.models.lookups.Exact
, django.db.models.lookups.GreaterThan
, django.db.models.lookups.GreaterThanOrEqual
, django.db.models.lookups.IExact
, django.db.models.lookups.In
, django.db.models.lookups.IsNull
, django.db.models.lookups.LessThan
, django.db.models.lookups.LessThanOrEqual
, django.db.models.lookups.Range
, django.db.models.lookups.Regex
, django.db.models.lookups.StartsWith
Undocumented