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

Method _cmd

pymongo/asynchronous/database.py:1074–1085  ·  view source on GitHub ↗
(
            session: Optional[AsyncClientSession],
            _server: Server,
            conn: AsyncConnection,
            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 async def _cmd(
1075 session: Optional[AsyncClientSession],
1076 _server: Server,
1077 conn: AsyncConnection,
1078 read_preference: _ServerMode,
1079 ) -> dict[str, Any]:
1080 return await self._command(
1081 conn,
1082 command,
1083 read_preference=read_preference,
1084 session=session,
1085 )
1086
1087 return await 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