module Cassie::Schema::Migration::CassandraSupport

Public Instance Methods

execute(*params) click to toggle source
# File lib/cassie/schema/migration/cassandra_support.rb, line 13
def execute(*params)
  session.execute(*params)
end
using_keyspace(val) { || ... } click to toggle source

compatibility with casandra_migrations until import handles this

# File lib/cassie/schema/migration/cassandra_support.rb, line 19
def using_keyspace(val)
  raise ArgumentError, "block required for using temporary keyspace" unless block_given?
  orignal = @keyspace if defined?(@keyspace)
  @keyspace = val

  yield

  if defined?(orignal)
    @keyspace = original
  else
    remove_instance_variable(:@keyspace)
  end
end