instance method
execute_batch
Ruby on Rails 6.0.6
Since v6.0.6 Last seen in v7.0.10 PrivateSignature
execute_batch(statements, name = nil)
No documentation comment.
Parameters
-
statementsreq -
nameopt = nil
Source
# File activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb, line 76
def execute_batch(statements, name = nil)
combine_multi_statements(statements).each do |statement|
execute(statement, name)
end
@connection.abandon_results!
end
Defined in activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb line 76
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::MySQL::DatabaseStatements