모듈: Mongo::Operation::OpMsgExecutable Private
- 다음을 포함합니다.
- 다형성 조회
- 포함 항목:
- Aggregate , CollectionsInfo , Command , Count , Create , CreateIndex , CreateSearchIndexes , CreateUser , Distinct , Drop , DropDatabase , DropIndex , DropSearchIndex , Explain , Find , GetMore , Indexes , KillCursors , ListCollections , Users , MapReduce , SearchIndex , UpdateUser , UpdateUser , UpdateUser , UpdateUser , UpdateUser , WriteCommand
- 다음에 정의됨:
- lib/ Mongo/operation/shared/op_msg_executable.rb
개요
이 모듈은 비공개 API의 일부입니다. 이 모듈은 향후 제거되거나 변경될 수 있으므로 가능하면 사용하지 않는 것이 좋습니다.
작업을 OpMsg로 실행하는 공유 동작입니다.
인스턴스 메서드 요약 접기
-
#execution(서버, context:, options: {}) ⇒ Mongo::Operation::Result
비공개
작업을 실행합니다.
-
#execution_with_connection(connection, context:, options: {}) ⇒ Mongo::Operation::Result
비공개
작업을 실행합니다.
인스턴스 메서드 세부 정보
#실행(서버, 컨텍스트:, 옵션: {}) ⇒ Mongo::Operation::Result
이 메서드는 비공개 API의 일부입니다. 이 방법은 향후 제거되거나 변경될 수 있으므로 가능하면 사용하지 않는 것이 좋습니다.
작업을 실행합니다.
34 35 36 37 38 39 40 41 |
# 파일 'lib/ Mongo/operation/shared/op_msg_executable.rb', 줄 34 def 실행(서버, 컨텍스트:, 옵션: {}) 서버.with_connection( connection_global_id: 컨텍스트.connection_global_id, 컨텍스트: 컨텍스트 ) do |연결| execution_with_connection(연결, 컨텍스트: 컨텍스트, 옵션: ) end end |
#execution_with_connection(connection, context:, options: {}) ⇒ Mongo::Operation::Result
이 메서드는 비공개 API의 일부입니다. 이 방법은 향후 제거되거나 변경될 수 있으므로 가능하면 사용하지 않는 것이 좋습니다.
작업을 실행합니다.
51 52 53 |
# 파일 'lib/ Mongo/operation/shared/op_msg_executable.rb', 줄 51 def execution_with_connection(연결, 컨텍스트:, 옵션: {}) final_operation.실행(연결, 컨텍스트: 컨텍스트, 옵션: ) end |