MCPcopy
hub / github.com/django/django / has_results

Method has_results

django/db/models/sql/query.py:683–686  ·  view source on GitHub ↗
(self, using)

Source from the content-addressed store, hash-verified

681 return q
682
683 def has_results(self, using):
684 q = self.exists()
685 compiler = q.get_compiler(using=using)
686 return compiler.has_results()
687
688 def explain(self, using, format=None, **options):
689 q = self.clone()

Callers 1

existsMethod · 0.45

Calls 2

existsMethod · 0.95
get_compilerMethod · 0.80

Tested by

no test coverage detected