Class: QueryBuilder::CQL::Contexts::Index
- Defined in:
- lib/query_builder/cql/contexts/index.rb
Overview
Describes the Cassandra table index
Instance Method Summary collapse
-
#create(*options) ⇒ QueryBuilder::Statements::CreateIndex
Builds the ‘CREATE INDEX’ CQL statement for the current table.
-
#drop ⇒ QueryBuilder::Statements::DropIndex
Builds the ‘DROP INDEX’ CQL statement.
-
#to_s ⇒ <type>
<description>.
Instance Method Details
#create(*options) ⇒ QueryBuilder::Statements::CreateIndex
Builds the ‘CREATE INDEX’ CQL statement for the current table
28 29 30 |
# File 'lib/query_builder/cql/contexts/index.rb', line 28 def create(*) Statements::CreateIndex.new(context: self).add() end |
#drop ⇒ QueryBuilder::Statements::DropIndex
Builds the ‘DROP INDEX’ CQL statement
36 37 38 |
# File 'lib/query_builder/cql/contexts/index.rb', line 36 def drop Statements::DropIndex.new(context: self) end |
#to_s ⇒ <type>
<description>
18 19 20 |
# File 'lib/query_builder/cql/contexts/index.rb', line 18 def to_s [table.keyspace.name, name].join(".") end |