MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _get_more

Function _get_more

pymongo/message.py:552–561  ·  view source on GitHub ↗

Get a **getMore** message.

(
    collection_name: str,
    num_to_return: int,
    cursor_id: int,
    ctx: Union[SnappyContext, ZlibContext, ZstdContext, None] = None,
)

Source from the content-addressed store, hash-verified

550
551
552def _get_more(
553 collection_name: str,
554 num_to_return: int,
555 cursor_id: int,
556 ctx: Union[SnappyContext, ZlibContext, ZstdContext, None] = None,
557) -> tuple[int, bytes]:
558 """Get a **getMore** message."""
559 if ctx:
560 return _get_more_compressed(collection_name, num_to_return, cursor_id, ctx)
561 return _get_more_uncompressed(collection_name, num_to_return, cursor_id)
562
563
564# OP_MSG -------------------------------------------------------------

Callers 1

get_messageMethod · 0.85

Calls 2

_get_more_compressedFunction · 0.85
_get_more_uncompressedFunction · 0.85

Tested by

no test coverage detected