(
session: Optional[ClientSession], conn: Connection, _retryable_write: bool
)
| 649 | cmd.update(options) |
| 650 | |
| 651 | def inner( |
| 652 | session: Optional[ClientSession], conn: Connection, _retryable_write: bool |
| 653 | ) -> None: |
| 654 | if qev2_required and conn.max_wire_version < 21: |
| 655 | raise ConfigurationError( |
| 656 | "Driver support of Queryable Encryption is incompatible with server. " |
| 657 | "Upgrade server to use Queryable Encryption. " |
| 658 | f"Got maxWireVersion {conn.max_wire_version} but need maxWireVersion >= 21 (MongoDB >=7.0)" |
| 659 | ) |
| 660 | |
| 661 | self._command( |
| 662 | conn, |
| 663 | cmd, |
| 664 | read_preference=ReadPreference.PRIMARY, |
| 665 | write_concern=self._write_concern_for(session), |
| 666 | collation=collation, |
| 667 | session=session, |
| 668 | ) |
| 669 | |
| 670 | self.database.client._retryable_write(False, inner, session, _Op.CREATE) |
| 671 |
nothing calls this directly
no test coverage detected