MCPcopy
hub / github.com/django/django / ExtraWhere

Class ExtraWhere

django/db/models/sql/where.py:334–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332
333
334class ExtraWhere:
335 # The contents are a black box - assume no aggregates or windows are used.
336 contains_aggregate = False
337 contains_over_clause = False
338
339 def __init__(self, sqls, params):
340 self.sqls = sqls
341 self.params = params
342
343 def as_sql(self, compiler=None, connection=None):
344 sqls = ["(%s)" % sql for sql in self.sqls]
345 return " AND ".join(sqls), list(self.params or ())

Callers 1

add_extraMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected