Class: Google::Apis::SpannerV1::TransactionSelector
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::TransactionSelector
- 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
-
#begin ⇒ Google::Apis::SpannerV1::TransactionOptions
Options to use for transactions.
-
#id ⇒ String
Execute the read or SQL query in a previously-started transaction.
-
#single_use ⇒ Google::Apis::SpannerV1::TransactionOptions
Options to use for transactions.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransactionSelector
constructor
A new instance of TransactionSelector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransactionSelector
Returns a new instance of TransactionSelector.
7063 7064 7065 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 7063 def initialize(**args) update!(**args) end |
Instance Attribute Details
#begin ⇒ Google::Apis::SpannerV1::TransactionOptions
Options to use for transactions.
Corresponds to the JSON property begin
7050 7051 7052 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 7050 def begin @begin end |
#id ⇒ String
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.
7056 7057 7058 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 7056 def id @id end |
#single_use ⇒ Google::Apis::SpannerV1::TransactionOptions
Options to use for transactions.
Corresponds to the JSON property singleUse
7061 7062 7063 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 7061 def single_use @single_use end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7068 7069 7070 7071 7072 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 7068 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 |