class documentation
class DynamicDocument(DynamicMixin, BaseDocument, mongoengine.DynamicDocument): (source)
Base class for dynamic documents that are stored in a MongoDB collection.
Dynamic documents can have arbitrary fields added to them.
The ID of a document is automatically populated when it is added to the database, and the ID of a document is None if it has not been added to the database.
Class Variable | meta |
Undocumented |
Instance Variable | id |
the ID of the document, or None if it has not been added to the database |
Inherited from DynamicMixin
:
Method | to |
Undocumented |
Class Method | _from |
Undocumented |
Inherited from BaseDocument
(via DynamicMixin
):
Method | __eq__ |
Undocumented |
Property | in |
Whether the document has been inserted into the database. |
Method | _get |
Returns an ordered tuple of field names that should be included in the repr of the document. |
Inherited from MongoEngineBaseDocument
(via DynamicMixin
, BaseDocument
):
Class Method | from |
Loads the document from a BSON/JSON dictionary. |
Method | __deepcopy__ |
Undocumented |
Method | __delattr__ |
Undocumented |
Method | __delitem__ |
Undocumented |
Method | clear |
Clears the field from the document. |
Method | field |
Undocumented |
Method | field |
Undocumented |
Method | get |
Gets the field of the document. |
Method | has |
Determines whether the document has a field of the given name. |
Method | set |
Sets the value of a field of the document. |
Method | to |
Serializes this document to a BSON/JSON dictionary. |
Property | field |
An ordered tuple of the public fields of this document. |
Method | _get |
Undocumented |
Method | _get |
Returns an ordered tuple of field names of this document. |
Method | _to |
Undocumented |
Instance Variable | _fields |
Undocumented |
Inherited from SerializableDocument
(via DynamicMixin
, BaseDocument
, MongoEngineBaseDocument
):
Class Method | from |
Loads the document from a JSON string. |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | copy |
Returns a deep copy of the document. |
Method | fancy |
Generates a customizable string representation of the document. |
Method | iter |
Returns an iterator over the (name, value) pairs of the public fields of the document. |
Method | merge |
Merges the contents of the given document into this document. |
Method | to |
Serializes the document to a JSON string. |