Class: DatastaxRails::Cql::DropKeyspace
- Defined in:
- lib/datastax_rails/cql/drop_keyspace.rb
Overview
CQL generation for DROP KEYSPACE
Instance Method Summary collapse
-
#initialize(ks_name) ⇒ DropKeyspace
constructor
A new instance of DropKeyspace.
- #to_cql ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(ks_name) ⇒ DropKeyspace
Returns a new instance of 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_cql ⇒ Object
9 10 11 |
# File 'lib/datastax_rails/cql/drop_keyspace.rb', line 9 def to_cql "DROP KEYSPACE #{@ks_name}" end |