Read only access to the write concern of this instance or session.
(self, session: Optional[_AgnosticClientSession])
| 944 | return self._write_concern |
| 945 | |
| 946 | def _write_concern_for(self, session: Optional[_AgnosticClientSession]) -> WriteConcern: |
| 947 | """Read only access to the write concern of this instance or session.""" |
| 948 | # Override this operation's write concern with the transaction's. |
| 949 | if session and session.in_transaction: |
| 950 | return DEFAULT_WRITE_CONCERN |
| 951 | return self.write_concern |
| 952 | |
| 953 | @property |
| 954 | def read_preference(self) -> _ServerMode: |
no outgoing calls
no test coverage detected