class documentation

class Version: (source)

View In Hierarchy

Metadata about the state of an Oxia record.

Method __str__ Undocumented
Method client_identity The identity of the client that last modified this ephemeral record, or ``None`` for non-ephemeral records.
Method created_timestamp When the record was created. Resets if the record is deleted and re-created.
Method is_ephemeral Whether the record is ephemeral (tied to a client session). Returns ``True`` if the record has an associated session ID, ``False`` otherwise.
Method modifications_count Number of modifications since the record was last created. Resets to 0 if the record is deleted and re-created.
Method modified_timestamp When the record was last modified.
Method session_id The session ID for ephemeral records, or ``None`` for non-ephemeral records.
Method version_id The monotonically increasing version identifier of the record.
def __str__(self): (source)

Undocumented

def client_identity(self) -> str: (source)

The identity of the client that last modified this ephemeral record, or ``None`` for non-ephemeral records.

def created_timestamp(self) -> datetime.datetime: (source)

When the record was created. Resets if the record is deleted and re-created.

def is_ephemeral(self) -> bool: (source)

Whether the record is ephemeral (tied to a client session). Returns ``True`` if the record has an associated session ID, ``False`` otherwise.

def modifications_count(self) -> int: (source)

Number of modifications since the record was last created. Resets to 0 if the record is deleted and re-created.

def modified_timestamp(self) -> datetime.datetime: (source)

When the record was last modified.

def session_id(self) -> int: (source)

The session ID for ephemeral records, or ``None`` for non-ephemeral records.

def version_id(self) -> int: (source)

The monotonically increasing version identifier of the record.