Class: Cassie::Schema::SelectVersionsQuery

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cqlObject (readonly) Originally defined in module Cassie::Statements::Statement

The CQL string portion for the statment

Examples:

statement.cql
#=> "SELECT * FROM table WHERE first=? AND middle=? and last=?"

#paramsObject (readonly) Originally defined in module Cassie::Statements::Statement

The positional values portion for the statment

Examples:

statement.params
#=> ['evan', 'thomas', 'prothro']

#result_classObject Originally defined in module Cassie::Statements::Execution::ClassMethods

The class to use for decorating the Cassandra::Result

Instance Method Details

#build_result(row) ⇒ Object


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

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

#keyspaceObject


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

def keyspace
  Cassie::Schema.schema_keyspace
end