Class: DatastaxRails::Cql::UseKeyspace

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

Overview

CQL generation for USE KEYSPACE XXX: Is this still used anywhere?

Instance Method Summary collapse

Methods inherited from Base

#execute, #using

Constructor Details

#initialize(ks_name) ⇒ UseKeyspace

Returns a new instance of UseKeyspace


6
7
8
# File 'lib/datastax_rails/cql/use_keyspace.rb', line 6

def initialize(ks_name)
  @ks_name = ks_name
end

Instance Method Details

#to_cqlObject


10
11
12
# File 'lib/datastax_rails/cql/use_keyspace.rb', line 10

def to_cql
  "USE #{@ks_name}"
end