Class: Google::Cloud::Spanner::BatchUpdate
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::BatchUpdate
- Defined in:
- lib/google/cloud/spanner/batch_update.rb
Overview
BatchUpdate
Accepts DML statements and optional parameters and types of the parameters for a batch update.
Instance Method Summary collapse
-
#batch_update(sql, params: nil, types: nil) ⇒ Object
Adds a DML statement to a batch update.
Instance Method Details
#batch_update(sql, params: nil, types: nil) ⇒ Object
Adds a DML statement to a batch update. See Transaction#batch_update.
138 139 140 141 |
# File 'lib/google/cloud/spanner/batch_update.rb', line 138 def batch_update sql, params: nil, types: nil @statements << Statement.new(sql, params: params, types: types) true end |