(self, conn: _AgnosticConnection)
| 1849 | |
| 1850 | class _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 | |
| 1862 | class _RawBatchGetMore(_GetMore): |
nothing calls this directly
no test coverage detected