GoogleApi.Spanner.V1.Model.Write (google_api_spanner v0.32.0) View Source

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

Attributes

  • columns (type: list(String.t), default: nil) - 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 (type: String.t, default: nil) - Required. The table whose rows will be written.
  • values (type: list(list(any())), default: nil) - 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Spanner.V1.Model.Write{
  columns: [String.t()] | nil,
  table: String.t() | nil,
  values: [[any()]] | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.