instance method exec_delete

Ruby on Rails 5.2.8.1

Since v5.2.8.1 Last seen in v6.1.7.10

Available in: v5.2.8.1 v6.0.6 v6.1.7.10

Signature

exec_delete(sql, name = nil, binds = [])

No documentation comment.

Parameters

sql req
name opt = nil
binds opt = []
Source
# File activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb, line 43
        def exec_delete(sql, name = nil, binds = [])
          if without_prepared_statement?(binds)
            execute_and_free(sql, name) { @connection.affected_rows }
          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 43 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::MySQL::DatabaseStatements

Type at least 2 characters to search.

↑↓ navigate · open · esc close