Method: Sequel::Dataset#with_sql_delete
- Defined in:
- lib/sequel/dataset/actions.rb
permalink #with_sql_delete(sql) ⇒ Object Also known as: with_sql_update
Execute the given SQL and return the number of rows deleted. This exists solely as an optimization, replacing with_sql(sql).delete. It’s significantly faster as it does not require cloning the current dataset.
1030 1031 1032 |
# File 'lib/sequel/dataset/actions.rb', line 1030 def with_sql_delete(sql) execute_dui(sql) end |