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>
-
(::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>
-
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.
-
(::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
- (::String) — Required. The table whose rows will be written.
#table=
def table=(value) -> ::String
- value (::String) — Required. The table whose rows will be written.
- (::String) — Required. The table whose rows will be written.
#values
def values() -> ::Array<::Google::Protobuf::ListValue>
-
(::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 invalues
. Each list invalues
must have exactly as many entries as there are entries in columns above. Sending multiple lists is equivalent to sending multipleMutation
s, each containing onevalues
entry and repeating table and columns. Individual values in each list are encoded as described here.
#values=
def values=(value) -> ::Array<::Google::Protobuf::ListValue>
-
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 invalues
. Each list invalues
must have exactly as many entries as there are entries in columns above. Sending multiple lists is equivalent to sending multipleMutation
s, each containing onevalues
entry and repeating table and columns. Individual values in each list are encoded as described here.
-
(::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 invalues
. Each list invalues
must have exactly as many entries as there are entries in columns above. Sending multiple lists is equivalent to sending multipleMutation
s, each containing onevalues
entry and repeating table and columns. Individual values in each list are encoded as described here.