Class: DatastaxRails::Cql::DropColumnFamily

Inherits:
Base
  • Object
show all
Defined in:
lib/datastax_rails/cql/drop_column_family.rb

Overview

CQL generate for DROP COLUMNFAMILY

Instance Method Summary collapse

Methods inherited from Base

#execute, #using

Constructor Details

#initialize(cf_name) ⇒ DropColumnFamily

Returns a new instance of DropColumnFamily


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

def initialize(cf_name)
  @cf_name = cf_name
end

Instance Method Details

#to_cqlObject


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

def to_cql
  "DROP COLUMNFAMILY #{@cf_name}"
end