method

with_multi_statements

with_multi_statements()
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/trilogy/database_statements.rb, line 83
          def with_multi_statements
            if multi_statements_enabled?
              return yield
            end

            with_raw_connection do |conn|
              conn.set_server_option(::Trilogy::SET_SERVER_MULTI_STATEMENTS_ON)

              yield
            ensure
              conn.set_server_option(::Trilogy::SET_SERVER_MULTI_STATEMENTS_OFF) if active?
            end
          end