class documentation
class Version: (source)
Version includes some information regarding the state of a record.
Method | __str__ |
Undocumented |
Method | client |
Get the client identity for ephemeral records. For ephemeral records, this is the unique identity of the Oxia client that did last modify it. It will be empty for all non-ephemeral records. |
Method | created |
The time when the record was last created (If the record gets deleted and recreated, it will have a new CreatedTimestamp value) |
Method | is |
Check if the record is ephemeral. |
Method | modifications |
Get the number of modifications to the record since it was last created. If the record gets deleted and recreated, the ModificationsCount will restart at 0. |
Method | modified |
Get the time when the record was last modified. |
Method | session |
Get the session identifier for ephemeral records. For ephemeral records, this is the identifier of the session to which this record lifecycle is attached to. Non-ephemeral records will always report 0. |
Method | version |
Retrieve the version ID. |
Get the client identity for ephemeral records. For ephemeral records, this is the unique identity of the Oxia client that did last modify it. It will be empty for all non-ephemeral records.
Returns | |
str | The client identity. |
The time when the record was last created (If the record gets deleted and recreated, it will have a new CreatedTimestamp value)
Get the number of modifications to the record since it was last created. If the record gets deleted and recreated, the ModificationsCount will restart at 0.
Returns | |
int | The number of modifications. |
Get the time when the record was last modified.
Returns | |
datetime.datetime | The last modification timestamp. |