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.
6836 6837 6838 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6836 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
6823 6824 6825 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6823 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.
6829 6830 6831 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6829 def id @id end |
#single_use ⇒ Google::Apis::SpannerV1::TransactionOptions
Options to use for transactions.
Corresponds to the JSON property singleUse
6834 6835 6836 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6834 def single_use @single_use end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6841 6842 6843 6844 6845 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6841 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 |