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

Method _start

pymongo/message.py:706–720  ·  view source on GitHub ↗

Publish a CommandStartedEvent.

(
        self, cmd: MutableMapping[str, Any], request_id: int, docs: list[Mapping[str, Any]]
    )

Source from the content-addressed store, hash-verified

704 return request_id, msg, to_send
705
706 def _start(
707 self, cmd: MutableMapping[str, Any], request_id: int, docs: list[Mapping[str, Any]]
708 ) -> MutableMapping[str, Any]:
709 """Publish a CommandStartedEvent."""
710 cmd[self.field] = docs
711 self.listeners.publish_command_start(
712 cmd,
713 self.db_name,
714 request_id,
715 self.conn.address,
716 self.conn.server_connection_id,
717 self.op_id,
718 self.conn.service_id,
719 )
720 return cmd
721
722
723class _EncryptedBulkWriteContext(_BulkWriteContext):

Callers 8

write_commandMethod · 0.45
unack_writeMethod · 0.45
write_commandMethod · 0.45
unack_writeMethod · 0.45
write_commandMethod · 0.45
unack_writeMethod · 0.45
write_commandMethod · 0.45
unack_writeMethod · 0.45

Calls 1

publish_command_startMethod · 0.80

Tested by

no test coverage detected