Skip to main content
Version: Main branch

document

superduper.base.document

Source code

Document​

Document(self,
*args,
schema: Optional[ForwardRef('Schema')] = None,
db: Optional[ForwardRef('Datalayer')] = None,
**kwargs)
ParameterDescription
args*args for dict
schemaThe schema to use.
dbThe datalayer to use.
kwargs**kwargs for dict

A wrapper around an instance of dict or a Encodable.

The document data is used to dump that resource to a mix of json-able content, ids and bytes

QueryUpdateDocument​

QueryUpdateDocument(self,
*args,
schema: Optional[ForwardRef('Schema')] = None,
db: Optional[ForwardRef('Datalayer')] = None,
**kwargs)
ParameterDescription
args*args for dict
schemaThe schema to use.
dbThe datalayer to use.
kwargs**kwargs for dict

A document that is used to update a document in a database.

This document is used to update a document in a database. It is a subclass of Document.