Class Mod (3.63.0)

Mod(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A mod describes all data changes in a watched table row.

Attributes

Name Description
keys MutableSequence[google.cloud.spanner_v1.types.ChangeStreamRecord.DataChangeRecord.ModValue]
Returns the value of the primary key of the modified row.
old_values MutableSequence[google.cloud.spanner_v1.types.ChangeStreamRecord.DataChangeRecord.ModValue]
Returns the old values before the change for the modified columns. Always empty for INSERT][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType.INSERT], or if old values are not being captured specified by value_capture_type][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ValueCaptureType].
new_values MutableSequence[google.cloud.spanner_v1.types.ChangeStreamRecord.DataChangeRecord.ModValue]
Returns the new values after the change for the modified columns. Always empty for DELETE][google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType.DELETE].