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

TransactionOptions

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

Options to use for transactions.

interface TransactionOptions {
excludeTxnFromChangeStreams?: boolean;
isolationLevel?: "ISOLATION_LEVEL_UNSPECIFIED" | "SERIALIZABLE" | "REPEATABLE_READ";
partitionedDml?: PartitionedDml;
readOnly?: ReadOnly;
readWrite?: ReadWrite;
}

§Properties

§
excludeTxnFromChangeStreams?: boolean
[src]

When exclude_txn_from_change_streams is set to true, it prevents read or write transactions from being tracked in change streams. * If the DDL option allow_txn_exclusion is set to true, then the updates made within this transaction aren't recorded in the change stream. * If you don't set the DDL option allow_txn_exclusion or if it's set to false, then the updates made within this transaction are recorded in the change stream. When exclude_txn_from_change_streams is set to false or not set, modifications from this transaction are recorded in all change streams that are tracking columns modified by these transactions. The exclude_txn_from_change_streams option can only be specified for read-write or partitioned DML transactions, otherwise the API returns an INVALID_ARGUMENT error.

§
isolationLevel?: "ISOLATION_LEVEL_UNSPECIFIED" | "SERIALIZABLE" | "REPEATABLE_READ"
[src]

Isolation level for the transaction.

§
partitionedDml?: PartitionedDml
[src]

Partitioned DML transaction. Authorization to begin a Partitioned DML transaction requires spanner.databases.beginPartitionedDmlTransaction permission on the session resource.

§
readOnly?: ReadOnly
[src]

Transaction does not write. Authorization to begin a read-only transaction requires spanner.databases.beginReadOnlyTransaction permission on the session resource.

§
readWrite?: ReadWrite
[src]

Transaction may write. Authorization to begin a read-write transaction requires spanner.databases.beginOrRollbackReadWriteTransaction permission on the session resource.