Read only access to the read preference of this instance or session.
(self, session: Optional[_AgnosticClientSession])
| 960 | return self._read_preference |
| 961 | |
| 962 | def _read_preference_for(self, session: Optional[_AgnosticClientSession]) -> _ServerMode: |
| 963 | """Read only access to the read preference of this instance or session.""" |
| 964 | # Override this operation's read preference with the transaction's. |
| 965 | if session: |
| 966 | return session._txn_read_preference() or self._read_preference |
| 967 | return self._read_preference |
| 968 | |
| 969 | @property |
| 970 | def read_concern(self) -> ReadConcern: |
no test coverage detected