Skip to content
Back to top
View this page

# CommitData

class dsviper.CommitData

  Bases: `object`

  A class used to represent data associated with a commit during the synchronization of two databases.

  Note: Not directly instantiable.

  blob_ids(stream_codec_instancing: StreamCodecInstancing, definitions: DefinitionsConst) → set[ValueBlobId]

    Return the set of blob_id referenced by the opcodes.

  data() → CommitData

    Return the blob of the encoded opcodes.

  header() → CommitHeader

    Return the header.

  opcodes(stream_codec_instancing: StreamCodecInstancing, definitions: DefinitionsConst) → list[ValueOpcode]

    Return the list of opcodes.

  static sort(commit_datas: list[CommitData]) → list[CommitData]

    Return the list of CommitDatas topologically sorted.