Cloud Spanner V1 API - Class Google::Cloud::Spanner::V1::TransactionSelector (v0.10.0)

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

This message is used to select the transaction in which a Read or ExecuteSql call runs.

See TransactionOptions for more information about transactions.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#begin

def begin() -> ::Google::Cloud::Spanner::V1::TransactionOptions
Returns

#begin=

def begin=(value) -> ::Google::Cloud::Spanner::V1::TransactionOptions
Parameter
Returns

#id

def id() -> ::String
Returns
  • (::String) — Execute the read or SQL query in a previously-started transaction.

#id=

def id=(value) -> ::String
Parameter
  • value (::String) — Execute the read or SQL query in a previously-started transaction.
Returns
  • (::String) — Execute the read or SQL query in a previously-started transaction.

#single_use

def single_use() -> ::Google::Cloud::Spanner::V1::TransactionOptions
Returns

#single_use=

def single_use=(value) -> ::Google::Cloud::Spanner::V1::TransactionOptions
Parameter
Returns