Show / Hide Table of Contents

Class TransactionOptions

Options to use for transactions.

Inheritance
object
TransactionOptions
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Spanner.v1.Data
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class TransactionOptions : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

ExcludeTxnFromChangeStreams

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.

Declaration
[JsonProperty("excludeTxnFromChangeStreams")]
public virtual bool? ExcludeTxnFromChangeStreams { get; set; }
Property Value
Type Description
bool?

IsolationLevel

Isolation level for the transaction.

Declaration
[JsonProperty("isolationLevel")]
public virtual string IsolationLevel { get; set; }
Property Value
Type Description
string

PartitionedDml

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

Declaration
[JsonProperty("partitionedDml")]
public virtual PartitionedDml PartitionedDml { get; set; }
Property Value
Type Description
PartitionedDml

ReadOnly__

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

Declaration
[JsonProperty("readOnly")]
public virtual ReadOnly ReadOnly__ { get; set; }
Property Value
Type Description
ReadOnly

ReadWrite

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

Declaration
[JsonProperty("readWrite")]
public virtual ReadWrite ReadWrite { get; set; }
Property Value
Type Description
ReadWrite

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX