Class | Sequel::Mysql2::Dataset |
In: |
lib/sequel/adapters/mysql2.rb
|
Parent: | Sequel::Dataset |
STREAMING_SUPPORTED | = | ::Mysql2::VERSION >= '0.3.12' |
DatasetClass | = | self |
Yield all rows matching this dataset.
# File lib/sequel/adapters/mysql2.rb, line 153 153: def fetch_rows(sql) 154: execute(sql) do |r| 155: @columns = if identifier_output_method 156: r.fields.map!{|c| output_identifier(c.to_s)} 157: else 158: r.fields 159: end 160: r.each(:cast_booleans=>convert_tinyint_to_bool?){|h| yield h} 161: end 162: self 163: end