lamindb.core.IsVersioned

class lamindb.core.IsVersioned

Bases: Model

Base class for versioned models.

Fields

version CharField

Version (default None).

Defines version of a family of records characterized by the same stem_uid.

Consider using semantic versioning with Python versioning.

Methods

add_to_version_family(is_new_version_of, version=None)

Add current record to a version family.

Parameters:
  • is_new_version_of (IsVersioned) – a record that belongs to the version family.

  • version (str | None, default: None) – semantic version of the record.