Class: Cassie::Schema::DropKeyspaceQuery

Inherits:
Definition show all
Defined in:
lib/cassie/schema/queries/drop_keyspace_query.rb

Instance Attribute Summary collapse

Attributes included from Cassie::Statements::Execution::ClassMethods

#result_class

Attributes included from Cassie::Statements::Statement

#cql, #params

Instance Method Summary collapse

Methods included from Cassie::Statements::Core

#initialize

Methods included from Cassie::Statements::Execution::ClassMethods

#inherited

Methods included from Cassie::Statements::Execution

#execute!, #execution_options

Methods included from Cassie::Statements::Execution::PartitionLinking

#build_partition_linker, #partition_linker?

Methods included from Cassie::Statements::Execution::Consistency

#consistency

Methods included from Cassie::Statements::Statement

#logger, #table, #to_cql

Methods included from Cassie::Statements::Statement::Preparation::ClassMethods

#prepare, #prepare=, #prepare?

Methods included from Cassie::Statements::Statement::Idempotency::ClassMethods

#idempotent, #idempotent=, #idempotent?, #non_idempotent

Methods included from Cassie::Statements::Statement::Idempotency

#idempotent, #idempotent?

Methods included from Cassie::Statements::Statement::TypeHinting::ClassMethods

#type_hints, #type_hints=

Methods included from Cassie::Statements::Statement::TypeHinting

#type_hints

Methods included from Cassie::Statements::Statement::Preparation

cache, init_cache

Methods included from Connection

#session

Instance Attribute Details

#keyspaceObject

Returns the value of attribute keyspace.



6
7
8
# File 'lib/cassie/schema/queries/drop_keyspace_query.rb', line 6

def keyspace
  @keyspace
end

Instance Method Details

#execute(opts = {}) ⇒ Object



14
15
16
17
# File 'lib/cassie/schema/queries/drop_keyspace_query.rb', line 14

def execute(opts={})
  opts[:timeout] ||= 10
  super(opts)
end

#statementObject



8
9
10
11
12
# File 'lib/cassie/schema/queries/drop_keyspace_query.rb', line 8

def statement
  cql = %(
    DROP KEYSPACE IF EXISTS #{keyspace};
   )
end