Transaction Key Value Python Module

TransactionKeyValue links Transactions and Keys and Values objects.

class pacifica.metadata.orm.trans_key_value.TransactionKeyValue(*args, **kwargs)[source]

TransactionKeyValue attributes are foreign keys.

Attributes:
Name Description
transaction Link to the Transactions model
key Link to the Keys model
value Link to the Values model
DoesNotExist

alias of TransactionKeyValueDoesNotExist

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

Convert the hash into the object.

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

Convert the object to a hash.

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

Where clause for the various elements.