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

Method send_cluster_time

pymongo/asynchronous/pool.py:586–594  ·  view source on GitHub ↗

Add $clusterTime.

(
        self,
        command: MutableMapping[str, Any],
        session: Optional[AsyncClientSession],
        client: Optional[AsyncMongoClient[Any]],
    )

Source from the content-addressed store, hash-verified

584 return self.conn.is_closing()
585
586 def send_cluster_time(
587 self,
588 command: MutableMapping[str, Any],
589 session: Optional[AsyncClientSession],
590 client: Optional[AsyncMongoClient[Any]],
591 ) -> None:
592 """Add $clusterTime."""
593 if client:
594 client._send_cluster_time(command, session)
595
596 def add_server_api(self, command: MutableMapping[str, Any]) -> None:
597 """Add server_api parameters."""

Callers 3

commandMethod · 0.95
_execute_commandMethod · 0.45
_execute_commandMethod · 0.45

Calls 1

_send_cluster_timeMethod · 0.45

Tested by

no test coverage detected