Methods

Class Index [+]

Quicksearch

Sequel::Firebird::Dataset

Dataset class for Firebird datasets

Constants

DatasetClass

Public Instance Methods

fetch_rows(sql) click to toggle source

Yield all rows returned by executing the given SQL and converting the types.

    # File lib/sequel/adapters/firebird.rb, line 85
85:       def fetch_rows(sql)
86:         execute(sql) do |s|
87:           begin
88:             @columns = columns = s.fields.map{|c| output_identifier(c.name)}
89:             s.fetchall.each do |r|
90:               h = {}
91:               r.zip(columns).each{|v, c| h[c] = v}
92:               yield h
93:             end
94:           ensure
95:             s.close
96:           end
97:         end
98:         self
99:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.