MCPcopy
hub / github.com/django/django / PostgresOperatorLookup

Class PostgresOperatorLookup

django/db/models/lookups.py:352–361  ·  view source on GitHub ↗

Lookup defined by operators on PostgreSQL.

Source from the content-addressed store, hash-verified

350
351
352class PostgresOperatorLookup(Lookup):
353 """Lookup defined by operators on PostgreSQL."""
354
355 postgres_operator = None
356
357 def as_postgresql(self, compiler, connection):
358 lhs, lhs_params = self.process_lhs(compiler, connection)
359 rhs, rhs_params = self.process_rhs(compiler, connection)
360 params = tuple(lhs_params) + tuple(rhs_params)
361 return "%s %s %s" % (lhs, self.postgres_operator, rhs), params
362
363
364@Field.register_lookup

Callers 1

validateMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected