method

execute_batch

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: DatabaseStatements
execute_batch(statements, name = nil) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb, line 99
          def execute_batch(statements, name = nil)
            statements = statements.map { |sql| transform_query(sql) }
            combine_multi_statements(statements).each do |statement|
              raw_execute(statement, name)
            end
            @connection.abandon_results!
          end
Register or log in to add new notes.