Cloud Spanner V1 Client - Class CommitStats (1.54.2)

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

Additional statistics about a commit.

Generated from protobuf message google.spanner.v1.CommitResponse.CommitStats

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ mutation_count int|string

The total number of mutations for the transaction. Knowing the mutation_count value can help you maximize the number of mutations in a transaction and minimize the number of API round trips. You can also monitor this value to prevent transactions from exceeding the system limit. If the number of mutations exceeds the limit, the server returns INVALID_ARGUMENT.

getMutationCount

The total number of mutations for the transaction. Knowing the mutation_count value can help you maximize the number of mutations in a transaction and minimize the number of API round trips. You can also monitor this value to prevent transactions from exceeding the system limit.

If the number of mutations exceeds the limit, the server returns INVALID_ARGUMENT.

Generated from protobuf field int64 mutation_count = 1;

Returns
TypeDescription
int|string

setMutationCount

The total number of mutations for the transaction. Knowing the mutation_count value can help you maximize the number of mutations in a transaction and minimize the number of API round trips. You can also monitor this value to prevent transactions from exceeding the system limit.

If the number of mutations exceeds the limit, the server returns INVALID_ARGUMENT.

Generated from protobuf field int64 mutation_count = 1;

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this