Class: Cassie::Schema::SelectVersionsQuery

Inherits:
Query show all
Defined in:
lib/cassie/schema/queries/select_versions_query.rb

Instance Attribute Summary

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

#result_class

Attributes included from Cassie::Statements::Statement

#cql, #params

Instance Method Summary collapse

Methods included from Connection::ClassMethods

#keyspace=

Methods included from Cassie::Statements::Core

#initialize

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

#inherited

Methods included from Cassie::Statements::Execution

#execute, #execute!, #execution_options

Methods included from Cassie::Statements::Execution::Instrumentation

#execute

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

#build_partition_linker, #execute, #partition_linker?

Methods included from Cassie::Statements::Execution::Callbacks

#execute

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

#consistency

Methods included from Cassie::Statements::Statement

#logger, #statement, #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, #statement

Methods included from Connection

#session

Instance Method Details

#applicationObject


13
14
15
# File 'lib/cassie/schema/queries/select_versions_query.rb', line 13

def application
  Cassie::Schema.application
end

#build_result(row) ⇒ Object


17
18
19
20
21
22
23
# File 'lib/cassie/schema/queries/select_versions_query.rb', line 17

def build_result(row)
  Version.new(row["number"],
              row["description"],
              row["id"],
              row["executor"],
              row["executed_at"])
end

#envObject


9
10
11
# File 'lib/cassie/schema/queries/select_versions_query.rb', line 9

def env
  Cassie.env
end

#keyspaceObject


25
26
27
# File 'lib/cassie/schema/queries/select_versions_query.rb', line 25

def keyspace
  Cassie::Schema.schema_keyspace
end