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

Method as_sql

django/db/models/lookups.py:237–242  ·  view source on GitHub ↗
(self, compiler, connection)

Source from the content-addressed store, hash-verified

235 return lhs_sql, tuple(params)
236
237 def as_sql(self, compiler, connection):
238 lhs_sql, params = self.process_lhs(compiler, connection)
239 rhs_sql, rhs_params = self.process_rhs(compiler, connection)
240 params = (*params, *rhs_params)
241 rhs_sql = self.get_rhs_op(connection, rhs_sql)
242 return "%s %s" % (lhs_sql, rhs_sql), params
243
244 def get_rhs_op(self, connection, rhs):
245 return connection.operators[self.lookup_name] % rhs

Callers

nothing calls this directly

Calls 3

process_lhsMethod · 0.95
get_rhs_opMethod · 0.95
process_rhsMethod · 0.45

Tested by

no test coverage detected