Some ActiveRecord internals hackery. How'd I do @sgrif?
https://github.com/bradurani/pg-eyeballs/blob/master/lib/eyeballs/inspector.rb#L94 …
But why not use `to_sql` from the connection for each query? Why duplicate the quoting behavior at all?
-
-
Hmmm... not sure how to get from the query binding arrays I collect in `collecting_queries_for_explain` to `to_sql`. Will try. Thx!
-
or more generally, given a relation with a preload, how do I get to_sql for both queries
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.