Flowdock
method

execute_batch

Importance_0
v7.1.3.2 - 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/sqlite3/database_statements.rb, line 132
          def execute_batch(statements, name = nil)
            statements = statements.map { |sql| transform_query(sql) }
            sql = combine_multi_statements(statements)

            check_if_write_query(sql)
            mark_transaction_written_if_write(sql)

            log(sql, name) do
              with_raw_connection do |conn|
                result = conn.execute_batch2(sql)
                verified!
                result
              end
            end
          end
Register or log in to add new notes.