ValueOpcodeDocumentSet

class dsviper.ValueOpcodeDocumentSet

Bases: ValueOpcode

Writes a whole document at a key - the only opcode without a path.

Note: Not directly instantiable.

arguments(definitions: DefinitionsConst, *, encoded: Literal[True] = True) → tuple[Attachment, ValueKey, _OutputValues]

Return (attachment, key, value), resolving the ids the opcode carries against definitions.

encoded=False returns a Value rather than a native object.

key() → ValueOpcodeKey

Return the ValueOpcodeKey the opcode applies to - the attachment, the instance and its concept.

type() → str

Return ‘Document_Set’, the name of this opcode’s kind.

value() → Value

Return the document the opcode writes whole.