instance method with_multi_statements

Ruby on Rails 7.2.3

Since v7.1.6 Last seen in v7.2.3 Private — implementation detail, not part of the public API

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) if active?
            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.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close