Class: JDBCHelper::Connection::ResultSet

Inherits:
Object
  • Object
show all
Defined in:
lib/jdbc_helper/resultset.rb

Instance Method Summary collapse

Instance Method Details

#raw_output(column_index = 1) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/jdbc_helper/resultset.rb', line 4

def raw_output(column_index = 1)
  lines = []
  begin
    lines << @rset.getString(column_index)
  end while @rset.next

  lines.map(&:rstrip).join("\n")
end