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

Method close

pymongo/synchronous/encryption.py:345–354  ·  view source on GitHub ↗

Release resources. Note it is not safe to call this method from __del__ or any GC hooks.

(self)

Source from the content-addressed store, hash-verified

343 return encode(doc)
344
345 def close(self) -> None:
346 """Release resources.
347
348 Note it is not safe to call this method from __del__ or any GC hooks.
349 """
350 self.client_ref = None
351 self.key_vault_coll = None
352 if self.mongocryptd_client:
353 self.mongocryptd_client.close()
354 self.mongocryptd_client = None
355
356
357class RewrapManyDataKeyResult:

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected