MCPcopy
hub / github.com/django/django / get_compiler

Method get_compiler

django/db/models/sql/query.py:369–376  ·  view source on GitHub ↗
(self, using=None, connection=None, elide_empty=True)

Source from the content-addressed store, hash-verified

367 return result
368
369 def get_compiler(self, using=None, connection=None, elide_empty=True):
370 if using is None and connection is None:
371 raise ValueError("Need either using or connection")
372 if using:
373 connection = connections[using]
374 return connection.ops.compiler(self.compiler)(
375 self, connection, using, elide_empty
376 )
377
378 def get_meta(self):
379 """

Callers 15

constraint_sqlMethod · 0.95
db_default_sqlMethod · 0.95
checkMethod · 0.95
_get_condition_sqlMethod · 0.95
_get_check_sqlMethod · 0.95
_get_condition_sqlMethod · 0.95
sql_with_paramsMethod · 0.95
as_sqlMethod · 0.95
test_q_annotationMethod · 0.95
test_reprMethod · 0.95

Calls 1

compilerMethod · 0.80

Tested by 15

test_q_annotationMethod · 0.76
test_reprMethod · 0.76
test_ticket7813Method · 0.64
test_ticket7045Method · 0.64
test_no_chunked_readsMethod · 0.64