instance method with_multi_statements

Ruby on Rails 7.1.6

Since v7.1.6 Last seen in v7.2.3 Private

Available in: v7.1.6 v7.2.3

Signature

with_multi_statements()

No documentation comment.

Source
# 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)
            end
          end

Defined in activerecord/lib/active_record/connection_adapters/trilogy/database_statements.rb line 83 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::Trilogy::DatabaseStatements

Type at least 2 characters to search.

↑↓ navigate · open · esc close