Method: Cequel::Metal::Batch#initialize
- Defined in:
- lib/cequel/metal/batch.rb
#initialize(keyspace, options = {}) ⇒ Batch
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Batch.
27 28 29 30 31 32 33 34 35 |
# File 'lib/cequel/metal/batch.rb', line 27 def initialize(keyspace, = {}) .assert_valid_keys(:auto_apply, :unlogged, :consistency) @keyspace = keyspace @auto_apply = [:auto_apply] @unlogged = .fetch(:unlogged, false) @consistency = .fetch(:consistency, keyspace.default_consistency) reset end |