File Key Value Python Module

FileKeyValue links Files and Keys and Values objects.

class pacifica.metadata.orm.file_key_value.FileKeyValue(*args, **kwargs)[source]

FileKeyValue attributes are foreign keys.

Attributes:
Name Description
file Link to the File model
key Link to the Key model
value Link to the Value model
DoesNotExist

alias of FileKeyValueDoesNotExist

_meta = <peewee.Metadata object>
_schema = <peewee.SchemaManager object>
created = <ExtendDateTimeField: FileKeyValue.created>
deleted = <ExtendDateTimeField: FileKeyValue.deleted>
file = <ForeignKeyField: FileKeyValue.file>
file_id = <ForeignKeyField: FileKeyValue.file>
from_hash(obj)[source]

Convert the hash into the object.

key = <ForeignKeyField: FileKeyValue.key>
key_id = <ForeignKeyField: FileKeyValue.key>
to_hash(**flags)[source]

Convert the object to a hash.

updated = <ExtendDateTimeField: FileKeyValue.updated>
value = <ForeignKeyField: FileKeyValue.value>
value_id = <ForeignKeyField: FileKeyValue.value>
classmethod where_clause(kwargs)[source]

Where clause for the various elements.