Sha256: 1b22919740b3d6e6dee147c0fd24fa8b8f98a52f005dc6967c8ee9a7ed995378
Contents?: true
Size: 698 Bytes
Versions: 11
Compression:
Stored size: 698 Bytes
Contents
module CassandraCQL module V08 class ResultSchema < CassandraCQL::ResultSchema def initialize(column_family) type_slice = lambda {|type| type[type.rindex('.')+1..-1] } @names = Hash.new(type_slice.call(column_family.comparator_type)) @values = Hash.new(type_slice.call(column_family.default_validation_class)) column_family.columns.each_pair do |name, type| @values[name] = type_slice.call(type) end end end class Result < CassandraCQL::Result def initialize(result, column_family) @result = result @schema = ResultSchema.new(column_family) if rows? @cursor = 0 end end end end
Version data entries
11 entries across 11 versions & 2 rubygems