Class TransactionSelector
This message is used to select the transaction in which a Read or ExecuteSql call runs. See TransactionOptions for more information about transactions.
Implements
Inherited Members
Namespace: Google.Apis.Spanner.v1.Data
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class TransactionSelector : IDirectResponseSchema
Properties
Begin
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, which is a Transaction.
Declaration
[JsonProperty("begin")]
public virtual TransactionOptions Begin { get; set; }
Property Value
Type | Description |
---|---|
TransactionOptions |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
Execute the read or SQL query in a previously-started transaction.
Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
SingleUse
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.
Declaration
[JsonProperty("singleUse")]
public virtual TransactionOptions SingleUse { get; set; }
Property Value
Type | Description |
---|---|
TransactionOptions |