instance method raw_execute

Ruby on Rails 7.2.3

Since v7.1.6 Last seen in v7.2.3

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/postgresql/database_statements.rb, line 53
        def raw_execute(sql, name, async: false, allow_retry: false, materialize_transactions: true)
          log(sql, name, async: async) do |notification_payload|
            with_raw_connection(allow_retry: allow_retry, materialize_transactions: materialize_transactions) do |conn|
              result = conn.async_exec(sql)
              verified!
              handle_warnings(result)
              notification_payload[:row_count] = result.count
              result
            end
          end
        end

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

Defined in ActiveRecord::ConnectionAdapters::PostgreSQL::DatabaseStatements

Type at least 2 characters to search.

↑↓ navigate · open · esc close