class Google::Apis::SpannerV1::Write

Arguments to insert, update, insert_or_update, and replace operations.

Attributes

columns[RW]

The names of the columns in table to be written. The list of columns must contain enough columns to allow Cloud Spanner to derive values for all primary key columns in the row(s) to be modified. Corresponds to the JSON property `columns` @return [Array<String>]

table[RW]

Required. The table whose rows will be written. Corresponds to the JSON property `table` @return [String]

values[RW]

The values to be written. `values` can contain more than one list of values. If it does, then multiple rows are written, one for each entry in `values`. Each list in `values` must have exactly as many entries as there are entries in columns above. Sending multiple lists is equivalent to sending multiple ` Mutation`s, each containing one `values` entry and repeating table and columns. Individual values in each list are encoded as described here. Corresponds to the JSON property `values` @return [Array<Array<Object>>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 4853
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/spanner_v1/classes.rb, line 4858
def update!(**args)
  @columns = args[:columns] if args.key?(:columns)
  @table = args[:table] if args.key?(:table)
  @values = args[:values] if args.key?(:values)
end