instance method
exec_delete
Ruby on Rails 6.0.6
Since v5.2.8.1 Last seen in v6.1.7.10Signature
exec_delete(sql, name = nil, binds = [])
No documentation comment.
Parameters
-
sqlreq -
nameopt = nil -
bindsopt = []
Source
# File activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb, line 64
def exec_delete(sql, name = nil, binds = [])
if without_prepared_statement?(binds)
@lock.synchronize do
execute_and_free(sql, name) { @connection.affected_rows }
end
else
exec_stmt_and_free(sql, name, binds) { |stmt| stmt.affected_rows }
end
end
Defined in activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb line 64
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::MySQL::DatabaseStatements