MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / _disconnect

Method _disconnect

mongoengine/document.py:205–207  ·  view source on GitHub ↗

Detach the Document class from the (cached) database collection

(cls)

Source from the content-addressed store, hash-verified

203
204 @classmethod
205 def _disconnect(cls):
206 """Detach the Document class from the (cached) database collection"""
207 cls._collection = None
208
209 @classmethod
210 def _get_collection(cls):

Callers 1

disconnectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected