Class: Google::Cloud::Spanner::V1::BatchWriteRequest
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::V1::BatchWriteRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/spanner/v1/spanner.rb
Overview
The request for BatchWrite.
Defined Under Namespace
Classes: MutationGroup
Instance Attribute Summary collapse
-
#exclude_txn_from_change_streams ⇒ ::Boolean
Optional.
-
#mutation_groups ⇒ ::Array<::Google::Cloud::Spanner::V1::BatchWriteRequest::MutationGroup>
Required.
-
#request_options ⇒ ::Google::Cloud::Spanner::V1::RequestOptions
Common options for this request.
-
#session ⇒ ::String
Required.
Instance Attribute Details
#exclude_txn_from_change_streams ⇒ ::Boolean
Returns Optional. When exclude_txn_from_change_streams
is set to true
:
- Mutations from all transactions in this batch write operation will not
be recorded in change streams with DDL option
allow_txn_exclusion=true
that are tracking columns modified by these transactions. - Mutations from all transactions in this batch write operation will be
recorded in change streams with DDL option
allow_txn_exclusion=false or not set
that are tracking columns modified by these transactions.
When exclude_txn_from_change_streams
is set to false
or not set,
mutations from all transactions in this batch write operation will be
recorded in all change streams that are tracking columns modified by these
transactions.
977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 |
# File 'proto_docs/google/spanner/v1/spanner.rb', line 977 class BatchWriteRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A group of mutations to be committed together. Related mutations should be # placed in a group. For example, two mutations inserting rows with the same # primary key prefix in both parent and child tables are related. # @!attribute [rw] mutations # @return [::Array<::Google::Cloud::Spanner::V1::Mutation>] # Required. The mutations in this group. class MutationGroup include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#mutation_groups ⇒ ::Array<::Google::Cloud::Spanner::V1::BatchWriteRequest::MutationGroup>
Returns Required. The groups of mutations to be applied.
977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 |
# File 'proto_docs/google/spanner/v1/spanner.rb', line 977 class BatchWriteRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A group of mutations to be committed together. Related mutations should be # placed in a group. For example, two mutations inserting rows with the same # primary key prefix in both parent and child tables are related. # @!attribute [rw] mutations # @return [::Array<::Google::Cloud::Spanner::V1::Mutation>] # Required. The mutations in this group. class MutationGroup include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#request_options ⇒ ::Google::Cloud::Spanner::V1::RequestOptions
Returns Common options for this request.
977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 |
# File 'proto_docs/google/spanner/v1/spanner.rb', line 977 class BatchWriteRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A group of mutations to be committed together. Related mutations should be # placed in a group. For example, two mutations inserting rows with the same # primary key prefix in both parent and child tables are related. # @!attribute [rw] mutations # @return [::Array<::Google::Cloud::Spanner::V1::Mutation>] # Required. The mutations in this group. class MutationGroup include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#session ⇒ ::String
Returns Required. The session in which the batch request is to be run.
977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 |
# File 'proto_docs/google/spanner/v1/spanner.rb', line 977 class BatchWriteRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A group of mutations to be committed together. Related mutations should be # placed in a group. For example, two mutations inserting rows with the same # primary key prefix in both parent and child tables are related. # @!attribute [rw] mutations # @return [::Array<::Google::Cloud::Spanner::V1::Mutation>] # Required. The mutations in this group. class MutationGroup include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |