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/datastore:v1.ts";

The request for Datastore.Commit.

interface CommitRequest {
databaseId?: string;
mode?: "MODE_UNSPECIFIED" | "TRANSACTIONAL" | "NON_TRANSACTIONAL";
mutations?: Mutation[];
singleUseTransaction?: TransactionOptions;
transaction?: Uint8Array;
}

§Properties

§
databaseId?: string
[src]

The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.

§
mode?: "MODE_UNSPECIFIED" | "TRANSACTIONAL" | "NON_TRANSACTIONAL"
[src]

The type of commit to perform. Defaults to TRANSACTIONAL.

§
mutations?: Mutation[]
[src]

The mutations to perform. When mode is TRANSACTIONAL, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single Commit request: - insert followed by insert - update followed by insert - upsert followed by insert - delete followed by update When mode is NON_TRANSACTIONAL, no two mutations may affect a single entity.

§
singleUseTransaction?: TransactionOptions
[src]

Options for beginning a new transaction for this request. The transaction is committed when the request completes. If specified, TransactionOptions.mode must be TransactionOptions.ReadWrite.

§
transaction?: Uint8Array
[src]

The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction.