MCPcopy
hub / github.com/django/django / as_sql

Method as_sql

tests/custom_lookups/tests.py:20–24  ·  view source on GitHub ↗
(self, compiler, connection)

Source from the content-addressed store, hash-verified

18 lookup_name = "div3"
19
20 def as_sql(self, compiler, connection):
21 lhs, lhs_params = self.process_lhs(compiler, connection)
22 rhs, rhs_params = self.process_rhs(compiler, connection)
23 params = (*lhs_params, *rhs_params)
24 return "(%s) %%%% 3 = %s" % (lhs, rhs), params
25
26 def as_oracle(self, compiler, connection):
27 lhs, lhs_params = self.process_lhs(compiler, connection)

Callers

nothing calls this directly

Calls 2

process_lhsMethod · 0.45
process_rhsMethod · 0.45

Tested by

no test coverage detected