Class: Google::Apis::SpannerV1::ExecuteBatchDmlRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::ExecuteBatchDmlRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spanner_v1/classes.rb,
generated/google/apis/spanner_v1/representations.rb,
generated/google/apis/spanner_v1/representations.rb
Overview
The request for ExecuteBatchDml
Instance Attribute Summary collapse
-
#seqno ⇒ Fixnum
A per-transaction sequence number used to identify this request.
-
#statements ⇒ Array<Google::Apis::SpannerV1::Statement>
The list of statements to execute in this batch.
-
#transaction ⇒ Google::Apis::SpannerV1::TransactionSelector
This message is used to select the transaction in which a Read or ExecuteSql call runs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExecuteBatchDmlRequest
constructor
A new instance of ExecuteBatchDmlRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ExecuteBatchDmlRequest
Returns a new instance of ExecuteBatchDmlRequest
862 863 864 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 862 def initialize(**args) update!(**args) end |
Instance Attribute Details
#seqno ⇒ Fixnum
A per-transaction sequence number used to identify this request. This is
used in the same space as the seqno in
ExecuteSqlRequest. See more details
in ExecuteSqlRequest.
Corresponds to the JSON property seqno
843 844 845 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 843 def seqno @seqno end |
#statements ⇒ Array<Google::Apis::SpannerV1::Statement>
The list of statements to execute in this batch. Statements are executed
serially, such that the effects of statement i are visible to statement
i+1. Each statement must be a DML statement. Execution will stop at the
first failed statement; the remaining statements will not run.
REQUIRES: statements_size()
> 0.
Corresponds to the JSON property statements
852 853 854 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 852 def statements @statements end |
#transaction ⇒ Google::Apis::SpannerV1::TransactionSelector
This message is used to select the transaction in which a
Read or
ExecuteSql call runs.
See TransactionOptions for more information about transactions.
Corresponds to the JSON property transaction
860 861 862 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 860 def transaction @transaction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
867 868 869 870 871 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 867 def update!(**args) @seqno = args[:seqno] if args.key?(:seqno) @statements = args[:statements] if args.key?(:statements) @transaction = args[:transaction] if args.key?(:transaction) end |