Delete rows matching this dataset
# File lib/sequel/adapters/mysql2.rb, line 134 def delete execute_dui(delete_sql){|c| return c.affected_rows} end
Yield all rows matching this dataset.
# File lib/sequel/adapters/mysql2.rb, line 139 def fetch_rows(sql, &block) execute(sql) do |r| @columns = r.fields r.each(:cast_booleans => db.convert_tinyint_to_bool, &block) end self end
Insert a new value into this dataset
# File lib/sequel/adapters/mysql2.rb, line 148 def insert(*values) execute_dui(insert_sql(*values)){|c| return c.last_id} end
Generated with the Darkfish Rdoc Generator 2.