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

Method use_command

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

Source from the content-addressed store, hash-verified

1861
1862class _RawBatchGetMore(_GetMore):
1863 def use_command(self, conn: _AgnosticConnection) -> bool:
1864 # Compatibility checks.
1865 super().use_command(conn)
1866 if conn.max_wire_version >= 8:
1867 # MongoDB 4.2+ supports exhaust over OP_MSG
1868 return True
1869 elif not self.exhaust:
1870 return True
1871 return False
1872
1873
1874class _CursorAddress(tuple[Any, ...]):

Callers

nothing calls this directly

Calls 1

use_commandMethod · 0.45

Tested by

no test coverage detected