MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / bulk_ctx_class

Method bulk_ctx_class

pymongo/asynchronous/bulk.py:122–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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."""

Callers 2

_execute_commandMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected