class CassandraMigrations::Cassandra::QueryResult
Public Class Methods
new(cql_query_result)
click to toggle source
# File lib/cassandra_migrations/cassandra/query_result.rb, line 7 def initialize(cql_query_result) @cql_query_result = cql_query_result end
Public Instance Methods
inspect()
click to toggle source
We don't want to flood the console or the log with an inspection of a lot of loaded data
# File lib/cassandra_migrations/cassandra/query_result.rb, line 13 def inspect "#<CassandraMigrations::Cassandra::QueryResult:#{object_id}>" end
metadata()
click to toggle source
Returns {'column_name' => :column_type} hash
# File lib/cassandra_migrations/cassandra/query_result.rb, line 18 def metadata hash = {} @cql_query_result.metadata.each do |column_metadata| hash[column_metadata.column_name] = column_metadata.type end hash end
method_missing(name, *args, &block)
click to toggle source
Delegates all other method calls to the lower level query result (Cql::Client::QueryResult)
# File lib/cassandra_migrations/cassandra/query_result.rb, line 27 def method_missing(name, *args, &block) @cql_query_result.send(name, *args, &block) end