instance method raw_execute

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

raw_execute(sql, name, async: false, allow_retry: false, materialize_transactions: true)

No documentation comment.

Parameters

sql req
name req
async key = false
allow_retry key = false
materialize_transactions key = true
Source
# File activerecord/lib/active_record/connection_adapters/trilogy/database_statements.rb, line 44
          def raw_execute(sql, name, async: false, allow_retry: false, materialize_transactions: true)
            log(sql, name, async: async) do
              with_raw_connection(allow_retry: allow_retry, materialize_transactions: materialize_transactions) do |conn|
                sync_timezone_changes(conn)
                result = conn.query(sql)
                verified!
                handle_warnings(sql)
                result
              end
            end
          end

Defined in activerecord/lib/active_record/connection_adapters/trilogy/database_statements.rb line 44 · 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