yawning_titan.db.doc_metadata.DocMetadataSchema#

class yawning_titan.db.doc_metadata.DocMetadataSchema[source]#

Bases: object

A schema-like class that defines the document metadata fields.

Fields are defined using the YawningTitanQuery class so that schema paths can be used directly within tinydb.table.Table.search() function calls. All fields are mapped to a property in the DocMetadata class.

Methods

Attributes

AUTHOR

Mapped to yawning_titan.db.yawning_titan_db.DocMetadata.author.

CREATED_AT

Mapped to yawning_titan.db.yawning_titan_db.DocMetadata.created_at.

DESCRIPTION

Mapped to yawning_titan.db.yawning_titan_db.DocMetadata.description.

LOCKED

Mapped to yawning_titan.db.yawning_titan_db.DocMetadata.locked.

NAME

Mapped to yawning_titan.db.yawning_titan_db.DocMetadata.name.

UPDATED_AT

Mapped to yawning_titan.db.yawning_titan_db.DocMetadata.updated_at.

UUID

Mapped to yawning_titan.db.yawning_titan_db.DocMetadata.uuid.