Cloud Spanner V1 API - Class Google::Cloud::Spanner::V1::Mutation::Write (v1.0.0)

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

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#columns

def columns() -> ::Array<::String>
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.

#columns=

def columns=(value) -> ::Array<::String>
Parameter
  • value (::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.

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.

#table

def table() -> ::String
Returns
  • (::String) — Required. The table whose rows will be written.

#table=

def table=(value) -> ::String
Parameter
  • value (::String) — Required. The table whose rows will be written.
Returns
  • (::String) — Required. The table whose rows will be written.

#values

def values() -> ::Array<::Google::Protobuf::ListValue>
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 Mutations, each containing one values entry and repeating table and columns. Individual values in each list are encoded as described here.

#values=

def values=(value) -> ::Array<::Google::Protobuf::ListValue>
Parameter
  • value (::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 Mutations, 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 Mutations, each containing one values entry and repeating table and columns. Individual values in each list are encoded as described here.