Class: Google::Apis::SpannerV1::TransactionSelector

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb

Overview

This message is used to select the transaction in which a Read or ExecuteSql call runs. See TransactionOptions for more information about transactions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TransactionSelector

Returns a new instance of TransactionSelector.



7056
7057
7058
# File 'lib/google/apis/spanner_v1/classes.rb', line 7056

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#beginGoogle::Apis::SpannerV1::TransactionOptions

Options to use for transactions. Corresponds to the JSON property begin



7043
7044
7045
# File 'lib/google/apis/spanner_v1/classes.rb', line 7043

def begin
  @begin
end

#idString

Execute the read or SQL query in a previously-started transaction. Corresponds to the JSON property id NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


7049
7050
7051
# File 'lib/google/apis/spanner_v1/classes.rb', line 7049

def id
  @id
end

#single_useGoogle::Apis::SpannerV1::TransactionOptions

Options to use for transactions. Corresponds to the JSON property singleUse



7054
7055
7056
# File 'lib/google/apis/spanner_v1/classes.rb', line 7054

def single_use
  @single_use
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7061
7062
7063
7064
7065
# File 'lib/google/apis/spanner_v1/classes.rb', line 7061

def update!(**args)
  @begin = args[:begin] if args.key?(:begin)
  @id = args[:id] if args.key?(:id)
  @single_use = args[:single_use] if args.key?(:single_use)
end