Method: Cql::Client#batch
- Defined in:
- lib/cql/client/client.rb
#batch(type = :logged, options = {}) {|batch| ... } ⇒ Cql::Client::VoidResult, Cql::Client::Batch
Yields a batch when called with a block. The batch is automatically executed at the end of the block and the result is returned.
Returns a batch when called wihtout a block. The batch will remember the options given and merge these with any additional options given when Cql::Client::Batch#execute is called.
Please note that the batch object returned by this method is not thread safe.
The type parameter can be ommitted and the options can then be given as first parameter.
|
# File 'lib/cql/client/client.rb', line 165
|