Class: DatastaxRails::Cql::DropKeyspace

Inherits:
Base show all
Defined in:
lib/datastax_rails/cql/drop_keyspace.rb

Instance Method Summary collapse

Methods inherited from Base

#execute, #using

Constructor Details

#initialize(ks_name) ⇒ DropKeyspace

Returns a new instance of DropKeyspace.



4
5
6
# File 'lib/datastax_rails/cql/drop_keyspace.rb', line 4

def initialize(ks_name)
  @ks_name = ks_name
end

Instance Method Details

#to_cqlObject



8
9
10
# File 'lib/datastax_rails/cql/drop_keyspace.rb', line 8

def to_cql
  "DROP KEYSPACE #{@ks_name}"
end