Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Write

import type { Write } from "https://googleapis.deno.dev/v1/spanner:v1.ts";

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

interface Write {
columns?: string[];
table?: string;
values?: any[][];
}

§Properties

§
columns?: string[]
[src]

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?: string
[src]

Required. The table whose rows will be written.

§
values?: any[][]
[src]

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.