Class: Google::Cloud::Spanner::BatchWrite
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::BatchWrite
- Defined in:
- lib/google/cloud/spanner/batch_write.rb
Overview
Part of the BatchWrite DSL.
This object is passed as a parameter to the block passed to Client#batch_write. Use this parameter to add mutation groups to the batch.
Instance Method Summary collapse
-
#mutation_group {|mg| ... } ⇒ Object
Adds a group of mutations.
Instance Method Details
#mutation_group {|mg| ... } ⇒ Object
Adds a group of mutations
57 58 59 60 61 |
# File 'lib/google/cloud/spanner/batch_write.rb', line 57 def mutation_group mg = MutationGroup.new yield mg @mutation_groups << mg end |