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

CommitRequest

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

The request for Commit.

interface CommitRequest {
maxCommitDelay?: number;
mutations?: Mutation[];
requestOptions?: RequestOptions;
returnCommitStats?: boolean;
singleUseTransaction?: TransactionOptions;
transactionId?: Uint8Array;
}

§Properties

§
maxCommitDelay?: number
[src]

Optional. The amount of latency this request is configured to incur in order to improve throughput. If this field is not set, Spanner assumes requests are relatively latency sensitive and automatically determines an appropriate delay time. You can specify a commit delay value between 0 and 500 ms.

§
mutations?: Mutation[]
[src]

The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.

§
requestOptions?: RequestOptions
[src]

Common options for this request.

§
returnCommitStats?: boolean
[src]

If true, then statistics related to the transaction will be included in the CommitResponse. Default value is false.

§
singleUseTransaction?: TransactionOptions
[src]

Execute mutations in a temporary transaction. Note that unlike commit of a previously-started transaction, commit with a temporary transaction is non-idempotent. That is, if the CommitRequest is sent to Cloud Spanner more than once (for instance, due to retries in the application, or in the transport library), it is possible that the mutations are executed more than once. If this is undesirable, use BeginTransaction and Commit instead.

§
transactionId?: Uint8Array
[src]

Commit a previously-started transaction.