Cloud Spanner V1 API - Class Google::Cloud::Spanner::V1::BatchWriteRequest (v0.26.0)

Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::BatchWriteRequest.

The request for BatchWrite.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#exclude_txn_from_change_streams

def exclude_txn_from_change_streams() -> ::Boolean
Returns
  • (::Boolean) — 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.

#exclude_txn_from_change_streams=

def exclude_txn_from_change_streams=(value) -> ::Boolean
Parameter
  • value (::Boolean) — 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.

Returns
  • (::Boolean) — 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.

#mutation_groups

def mutation_groups() -> ::Array<::Google::Cloud::Spanner::V1::BatchWriteRequest::MutationGroup>
Returns

#mutation_groups=

def mutation_groups=(value) -> ::Array<::Google::Cloud::Spanner::V1::BatchWriteRequest::MutationGroup>
Parameter
Returns

#request_options

def request_options() -> ::Google::Cloud::Spanner::V1::RequestOptions
Returns

#request_options=

def request_options=(value) -> ::Google::Cloud::Spanner::V1::RequestOptions
Parameter
Returns

#session

def session() -> ::String
Returns
  • (::String) — Required. The session in which the batch request is to be run.

#session=

def session=(value) -> ::String
Parameter
  • value (::String) — Required. The session in which the batch request is to be run.
Returns
  • (::String) — Required. The session in which the batch request is to be run.