Class: Google::Cloud::Spanner::V1::CommitResponse
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::V1::CommitResponse
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/spanner/v1/commit_response.rb
Overview
The response for Commit.
Defined Under Namespace
Classes: CommitStats
Instance Attribute Summary collapse
-
#commit_stats ⇒ ::Google::Cloud::Spanner::V1::CommitResponse::CommitStats
The statistics about this
Commit. -
#commit_timestamp ⇒ ::Google::Protobuf::Timestamp
The Cloud Spanner timestamp at which the transaction committed.
-
#precommit_token ⇒ ::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken
If specified, transaction has not committed yet.
-
#snapshot_timestamp ⇒ ::Google::Protobuf::Timestamp
If
TransactionOptions.isolation_levelis set toIsolationLevel.REPEATABLE_READ, then the snapshot timestamp is the timestamp at which all reads in the transaction ran.
Instance Attribute Details
#commit_stats ⇒ ::Google::Cloud::Spanner::V1::CommitResponse::CommitStats
Returns The statistics about this Commit. Not returned by default.
For more information, see
CommitRequest.return_commit_stats.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'proto_docs/google/spanner/v1/commit_response.rb', line 43 class CommitResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Additional statistics about a commit. # @!attribute [rw] mutation_count # @return [::Integer] # 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](https://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data). # If the number of mutations exceeds the limit, the server returns # [INVALID_ARGUMENT](https://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT). class CommitStats include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#commit_timestamp ⇒ ::Google::Protobuf::Timestamp
Returns The Cloud Spanner timestamp at which the transaction committed.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'proto_docs/google/spanner/v1/commit_response.rb', line 43 class CommitResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Additional statistics about a commit. # @!attribute [rw] mutation_count # @return [::Integer] # 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](https://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data). # If the number of mutations exceeds the limit, the server returns # [INVALID_ARGUMENT](https://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT). class CommitStats include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#precommit_token ⇒ ::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken
Returns If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'proto_docs/google/spanner/v1/commit_response.rb', line 43 class CommitResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Additional statistics about a commit. # @!attribute [rw] mutation_count # @return [::Integer] # 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](https://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data). # If the number of mutations exceeds the limit, the server returns # [INVALID_ARGUMENT](https://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT). class CommitStats include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#snapshot_timestamp ⇒ ::Google::Protobuf::Timestamp
Returns If TransactionOptions.isolation_level is set to
IsolationLevel.REPEATABLE_READ, then the snapshot timestamp is the
timestamp at which all reads in the transaction ran. This timestamp is
never returned.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'proto_docs/google/spanner/v1/commit_response.rb', line 43 class CommitResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Additional statistics about a commit. # @!attribute [rw] mutation_count # @return [::Integer] # 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](https://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data). # If the number of mutations exceeds the limit, the server returns # [INVALID_ARGUMENT](https://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT). class CommitStats include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |