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

Transaction

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

A transaction.

interface Transaction {
id?: Uint8Array;
readTimestamp?: Date;
}

§Properties

§
id?: Uint8Array
[src]

id may be used to identify the transaction in subsequent Read, ExecuteSql, Commit, or Rollback calls. Single-use read-only transactions do not have IDs, because single-use transactions do not support multiple requests.

§
readTimestamp?: Date
[src]

For snapshot read-only transactions, the read timestamp chosen for the transaction. Not returned by default: see TransactionOptions.ReadOnly.return_read_timestamp. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".