(self)
| 120 | |
| 121 | @property |
| 122 | def bulk_ctx_class(self) -> Type[_BulkWriteContext]: |
| 123 | encrypter = self.collection.database.client._encrypter |
| 124 | if encrypter and not encrypter._bypass_auto_encryption: |
| 125 | self.is_encrypted = True |
| 126 | return _EncryptedBulkWriteContext |
| 127 | else: |
| 128 | self.is_encrypted = False |
| 129 | return _BulkWriteContext |
| 130 | |
| 131 | def add_insert(self, document: _DocumentOut) -> None: |
| 132 | """Add an insert document to the list of ops.""" |
no outgoing calls
no test coverage detected