nofeardb.engine.StorageEngine
- class nofeardb.engine.StorageEngine(root: str)
Bases:
objectStorage Engine Class
- create(doc: Document)
create the document (and persist changes to all related documents)
- Parameters
doc (
nofeardb.orm.Document) – document to create.- Raises
nofeardb.exceptions.NotCreateableException – If the document can not be created.
- register_models(models: List[type])
Register the model classes to the storage engine. Needed to recosntruct the models from json.
- resolve_dependencies(doc: Document, scope: Optional[str] = None) List[Document]
creates a stack with depending documents