MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / use_command

Method use_command

pymongo/message.py:1851–1859  ·  view source on GitHub ↗
(self, conn: _AgnosticConnection)

Source from the content-addressed store, hash-verified

1849
1850class _RawBatchQuery(_Query):
1851 def use_command(self, conn: _AgnosticConnection) -> bool:
1852 # Compatibility checks.
1853 super().use_command(conn)
1854 if conn.max_wire_version >= 8:
1855 # MongoDB 4.2+ supports exhaust over OP_MSG
1856 return True
1857 elif not self.exhaust:
1858 return True
1859 return False
1860
1861
1862class _RawBatchGetMore(_GetMore):

Callers

nothing calls this directly

Calls 1

use_commandMethod · 0.45

Tested by

no test coverage detected