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

Method _cmd

pymongo/synchronous/database.py:1074–1085  ·  view source on GitHub ↗
(
            session: Optional[ClientSession],
            _server: Server,
            conn: Connection,
            read_preference: _ServerMode,
        )

Source from the content-addressed store, hash-verified

1072 read_preference = (session and session._txn_read_preference()) or ReadPreference.PRIMARY
1073
1074 def _cmd(
1075 session: Optional[ClientSession],
1076 _server: Server,
1077 conn: Connection,
1078 read_preference: _ServerMode,
1079 ) -> dict[str, Any]:
1080 return self._command(
1081 conn,
1082 command,
1083 read_preference=read_preference,
1084 session=session,
1085 )
1086
1087 return self._client._retryable_read(_cmd, read_preference, session, operation)
1088

Callers

nothing calls this directly

Calls 2

_commandMethod · 0.95
_list_collectionsMethod · 0.95

Tested by

no test coverage detected