Class: DatastaxRails::Cql::DropKeyspace

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

Overview

CQL generation for DROP KEYSPACE

Instance Method Summary collapse

Methods inherited from Base

#execute, #using

Constructor Details

#initialize(ks_name) ⇒ DropKeyspace


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

def initialize(ks_name)
  @ks_name = ks_name
end

Instance Method Details

#to_cqlObject


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

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