activerecord-sqlserver-adapter
activerecord-sqlserver-adapter copied to clipboard
Stored Procedure support for Rails 7 #load_async
Issue
We should support the new Rails 7 load_async method for ActiveRecord::Base.execute_procedure calls.
This obviously requires a few changes, such as utilizing query building as is the case when using Model.where and other lazy-loaded query forms, instead of simply passing through the query to dblib_execute directly.
This might require some changes in Rails, such as https://github.com/rails/rails/issues/44169
I don't know if this has been brought up before, or has been discussed.
We should be able to make use of https://github.com/rails/rails/pull/44446 to support async stored procedure calls.