Class: Google::Spanner::V1::Mutation::Write

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/spanner/v1/doc/google/spanner/v1/mutation.rb

Overview

Arguments to Insert, Update, Insert_or_update, and Replace operations.

Instance Attribute Summary collapse

Instance Attribute Details

#columnsArray<String>

Returns 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.

Returns:

  • (Array<String>)

    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.



67
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/mutation.rb', line 67

class Write; end

#tableString

Returns Required. The table whose rows will be written.

Returns:

  • (String)

    Required. The table whose rows will be written.



67
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/mutation.rb', line 67

class Write; end

#valuesArray<Google::Protobuf::ListValue>

Returns 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.

Returns:

  • (Array<Google::Protobuf::ListValue>)

    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.



67
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/mutation.rb', line 67

class Write; end