You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cte =Avram::CTE.new(:schedules) do |io|
io <<"SELECT ... FROM ...."endUserQuery.new.with_cte(cte)
I'll have to research a bit more of how many of my raw queries could be converted through this method. I know not all of them, but this could possibly clear up quite a bit.
The text was updated successfully, but these errors were encountered:
I use a lot of these thing, and always have to drop to raw SQL because of it. It would be great if Avram had it built right in
Here's my initial proposal
Or maybe go the route of
Avram::Join
with something likeAvram::CTE
https://github.com/luckyframework/avram/blob/main/src/avram/join.crI'll have to research a bit more of how many of my raw queries could be converted through this method. I know not all of them, but this could possibly clear up quite a bit.
The text was updated successfully, but these errors were encountered: