activerecord-sqlserver-adapter icon indicating copy to clipboard operation
activerecord-sqlserver-adapter copied to clipboard

Stored Procedure support for Rails 7 #load_async

Open frederikspang opened this issue 3 years ago • 1 comments

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.

frederikspang avatar Mar 07 '22 14:03 frederikspang

We should be able to make use of https://github.com/rails/rails/pull/44446 to support async stored procedure calls.

aidanharan avatar May 16 '22 08:05 aidanharan