instance method raw_execute

Ruby on Rails 7.0.10

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

Signature

raw_execute(sql, name, async: false)

No documentation comment.

Parameters

sql req
name req
async key = false
Source
# File activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb, line 91
          def raw_execute(sql, name, async: false)
            # make sure we carry over any changes to ActiveRecord.default_timezone that have been
            # made since we established the connection
            @connection.query_options[:database_timezone] = ActiveRecord.default_timezone

            super
          end

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

Defined in ActiveRecord::ConnectionAdapters::MySQL::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