Google Cloud Spanner v1 API - Class TransactionSelector (5.0.0-beta04)

public sealed class TransactionSelector : IMessage<TransactionSelector>, IEquatable<TransactionSelector>, IDeepCloneable<TransactionSelector>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Spanner v1 API class TransactionSelector.

This message is used to select the transaction in which a [Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] call runs.

See [TransactionOptions][google.spanner.v1.TransactionOptions] for more information about transactions.

Inheritance

object > TransactionSelector

Namespace

Google.Cloud.Spanner.V1

Assembly

Google.Cloud.Spanner.V1.dll

Constructors

TransactionSelector()

public TransactionSelector()

TransactionSelector(TransactionSelector)

public TransactionSelector(TransactionSelector other)
Parameter
Name Description
other TransactionSelector

Properties

Begin

public TransactionOptions Begin { get; set; }

Begin a new transaction and execute this read or SQL query in it. The transaction ID of the new transaction is returned in [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction], which is a [Transaction][google.spanner.v1.Transaction].

Property Value
Type Description
TransactionOptions

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
Type Description
bool

Id

public ByteString Id { get; set; }

Execute the read or SQL query in a previously-started transaction.

Property Value
Type Description
ByteString

SelectorCase

public TransactionSelector.SelectorOneofCase SelectorCase { get; }
Property Value
Type Description
TransactionSelectorSelectorOneofCase

SingleUse

public TransactionOptions SingleUse { get; set; }

Execute the read or SQL query in a temporary transaction. This is the most efficient way to execute a transaction that consists of a single SQL query.

Property Value
Type Description
TransactionOptions