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.
6964 6965 6966 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6964 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
6951 6952 6953 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6951 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.
6957 6958 6959 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6957 def id @id end |
#single_use ⇒ Google::Apis::SpannerV1::TransactionOptions
Options to use for transactions.
Corresponds to the JSON property singleUse
6962 6963 6964 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6962 def single_use @single_use end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6969 6970 6971 6972 6973 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6969 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 |