def enumerable(sql, fetch_size = 1000)
      results = @statement.execute_query(sql)

      Enumerator.new do |y|
        column_count = results.get_meta_data.get_column_count
        while(results.next) do
          row = {}
          1.upto(column_count) do |i|
            column_name = results.get_meta_data.get_column_name(i).to_sym
            row[column_name] = to_ruby_type(results.get_object(i))
          end
          y << row
        end
      end
    end
def enumerable(sql, fetch_size = 1000)
      results = @statement.execute_query(sql)

      Enumerator.new do |y|
        column_count = results.get_meta_data.get_column_count
        while(results.next) do
          row = {}
          1.upto(column_count) do |i|
            column_name = results.get_meta_data.get_column_name(i).to_sym
            row[column_name] = to_ruby_type(results.get_object(i))
          end
          y << row
        end
      end
    end
returns an enumerable, each element of which is a hash in the format {column1: value1, column2: value2}