Method: Sequel::Trilogy::Dataset#fetch_rows
- Defined in:
- lib/sequel/adapters/trilogy.rb
permalink #fetch_rows(sql) ⇒ Object
[View source]
93 94 95 96 97 98 99 |
# File 'lib/sequel/adapters/trilogy.rb', line 93 def fetch_rows(sql) execute(sql) do |r| self.columns = r.fields.map!{|c| output_identifier(c.to_s)} r.each_hash{|h| yield h} end self end |