Methods

Class/Module Index [+]

Quicksearch

Sequel::Mysql2::Dataset

Dataset class for MySQL datasets accessed via the native driver.

Constants

DatasetClass

Public Instance Methods

fetch_rows(sql) click to toggle source

Yield all rows matching this dataset.

# File lib/sequel/adapters/mysql2.rb, line 136
def fetch_rows(sql)
  execute(sql) do |r|
    @columns = if identifier_output_method
      r.fields.map!{|c| output_identifier(c.to_s)}
    else
      r.fields
    end
    r.each(:cast_booleans=>convert_tinyint_to_bool?){|h| yield h}
  end
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.