Cloud Spanner V1 Client - Class ModType (2.4.1)

Reference documentation and code samples for the Cloud Spanner V1 Client class ModType.

Mod type describes the type of change Spanner applied to the data. For example, if the client submits an INSERT_OR_UPDATE request, Spanner will perform an insert if there is no existing row and return ModType INSERT.

Alternatively, if there is an existing row, Spanner will perform an update and return ModType UPDATE.

Protobuf type google.spanner.v1.ChangeStreamRecord.DataChangeRecord.ModType

Namespace

Google \ Cloud \ Spanner \ V1 \ ChangeStreamRecord \ DataChangeRecord

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

MOD_TYPE_UNSPECIFIED

Value: 0

Not specified.

Generated from protobuf enum MOD_TYPE_UNSPECIFIED = 0;

INSERT

Value: 10

Indicates data was inserted.

Generated from protobuf enum INSERT = 10;

UPDATE

Value: 20

Indicates existing data was updated.

Generated from protobuf enum UPDATE = 20;

DELETE

Value: 30

Indicates existing data was deleted.

Generated from protobuf enum DELETE = 30;