Class Sequel::ODBC::Dataset
In: lib/sequel/adapters/odbc.rb
Parent: Sequel::Dataset

Methods

Constants

BOOL_TRUE = '1'.freeze
BOOL_FALSE = '0'.freeze
ODBC_DATE_FORMAT = "{d '%Y-%m-%d'}".freeze
TIMESTAMP_FORMAT = "{ts '%Y-%m-%d %H:%M:%S'}".freeze

Public Instance methods

[Source]

     # File lib/sequel/adapters/odbc.rb, line 91
 91:       def fetch_rows(sql)
 92:         execute(sql) do |s|
 93:           i = -1
 94:           cols = s.columns(true).map{|c| [output_identifier(c.name), i+=1]}
 95:           @columns = cols.map{|c| c.at(0)}
 96:           if rows = s.fetch_all
 97:             rows.each do |row|
 98:               hash = {}
 99:               cols.each{|n,i| hash[n] = convert_odbc_value(row[i])}
100:               yield hash
101:             end
102:           end
103:         end
104:         self
105:       end

[Validate]