CommitOpcodeXArrayInsert

class dsviper.CommitOpcodeXArrayInsert

Bases: CommitOpcode

Inserts a position into the xarray at a path, before another one.

Note: Not directly instantiable.

arguments(definitions: DefinitionsConst) → tuple[Attachment, ValueKey, PathConst, ValueUUId, ValueUUId]

Return (attachment, key, path, before_position, new_position).

The ids the opcode carries are resolved against definitions.

before_position() → ValueUUId

Return the position the new one is inserted before.

key() → CommitOpcodeKey

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

path() → PathConst

Return the Path inside the document the opcode writes at.

position() → ValueUUId

Return the new position the opcode inserts.

type() → str

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