Class: DatastaxRails::Cql::UseKeyspace
- 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
-
#initialize(ks_name) ⇒ UseKeyspace
constructor
A new instance of UseKeyspace.
- #to_cql ⇒ Object
Methods inherited from Base
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_cql ⇒ Object
10 11 12 |
# File 'lib/datastax_rails/cql/use_keyspace.rb', line 10 def to_cql "USE #{@ks_name}" end |