Sha256: 97c25bf66725b69c36a9097198929b69da104b37438211591981290998133b8a
Contents?: true
Size: 289 Bytes
Versions: 18
Compression:
Stored size: 289 Bytes
Contents
require 'pg' class PG::Result def value() self.getvalue(0, 0) end def each_value(&block) if block_given? self.each_row { |r| yield(r.first) } else self.each_row.map { |r| r.first } end end def empty?() ntuples == 0 end def to_a() self.values end end
Version data entries
18 entries across 18 versions & 1 rubygems