method
exec_no_cache
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
exec_no_cache(sql, name, binds, async:, allow_retry:, materialize_transactions:)private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 884
def exec_no_cache(sql, name, binds, async,, allow_retry,, materialize_transactions))
mark_transaction_written_if_write(sql)
# make sure we carry over any changes to ActiveRecord.default_timezone that have been
# made since we established the connection
update_typemap_for_default_timezone
type_casted_binds = type_casted_binds(binds)
log(sql, name, binds, type_casted_binds, async: async) do
with_raw_connection do |conn|
result = conn.exec_params(sql, type_casted_binds)
verified!
result
end
end
end