Transaction
import type { Transaction } from "https://googleapis.deno.dev/v1/spanner:v1.ts";
A transaction.
interface Transaction {
id?: Uint8Array;
precommitToken?: MultiplexedSessionPrecommitToken;
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.
§
precommitToken?: MultiplexedSessionPrecommitToken
[src]A precommit token is included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the BeginTransaction. The precommit token with the highest sequence number from this transaction attempt should be passed to the Commit request for this transaction.