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

Method _command

pymongo/synchronous/database.py:723–737  ·  view source on GitHub ↗
(
        self,
        conn: Connection,
        command: Union[str, MutableMapping[str, Any]],
        value: int = 1,
        check: bool = True,
        allowable_errors: Optional[Sequence[Union[str, int]]] = None,
        read_preference: _ServerMode = ReadPreference.PRIMARY,
        codec_options: CodecOptions[dict[str, Any]] = DEFAULT_CODEC_OPTIONS,
        write_concern: Optional[WriteConcern] = None,
        parse_write_concern_error: bool = False,
        session: Optional[ClientSession] = None,
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

721
722 @overload
723 def _command(
724 self,
725 conn: Connection,
726 command: Union[str, MutableMapping[str, Any]],
727 value: int = 1,
728 check: bool = True,
729 allowable_errors: Optional[Sequence[Union[str, int]]] = None,
730 read_preference: _ServerMode = ReadPreference.PRIMARY,
731 codec_options: CodecOptions[dict[str, Any]] = DEFAULT_CODEC_OPTIONS,
732 write_concern: Optional[WriteConcern] = None,
733 parse_write_concern_error: bool = False,
734 session: Optional[ClientSession] = None,
735 **kwargs: Any,
736 ) -> dict[str, Any]:
737 ...
738
739 @overload
740 def _command(

Callers 4

innerMethod · 0.95
_cmdMethod · 0.95
_list_collectionsMethod · 0.95
_finish_transactionMethod · 0.45

Calls 3

updateMethod · 0.45
_tmp_sessionMethod · 0.45
commandMethod · 0.45

Tested by

no test coverage detected