class BatchStatement

Public Class Methods

new(client, batch) click to toggle source
# File lib/cassandra_migrations/cql-rb-wrapper.rb, line 20
def initialize(client, batch)
  @client = client
  @batch = batch
end

Public Instance Methods

add(*args) click to toggle source
# File lib/cassandra_migrations/cql-rb-wrapper.rb, line 29
def add(*args)
  @batch.add(*args)
  self
end
execute(options = {}) click to toggle source
# File lib/cassandra_migrations/cql-rb-wrapper.rb, line 25
def execute(options = {})
  @client.execute(@batch, options)
end