MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / __repr__

Method __repr__

mongoengine/context_managers.py:272–274  ·  view source on GitHub ↗

repr query_counter as the number of queries.

(self)

Source from the content-addressed store, hash-verified

270 return self._get_count()
271
272 def __repr__(self):
273 """repr query_counter as the number of queries."""
274 return "%s" % self._get_count()
275
276 def _get_count(self):
277 """Get the number of queries by counting the current number of entries in db.system.profile

Callers

nothing calls this directly

Calls 1

_get_countMethod · 0.95

Tested by

no test coverage detected