Ray Zane
Ray Zane
I *think* the bind values have to be copied from the relation you're joining to the parent relation. At one time, baby_squeel had to handle this sort of thing for...
Yes, that's true. Might have to implement a method on the DSL to handle the relation ``` authors = Author.limit(3) Post.where.has { rel(authors).alias('a').on { ... } } ```
Yeah, you're right about `~`, and this is the key to handling the alias name: https://github.com/rzane/baby_squeel/blob/a290e41485b48eae526b2dc37e74d552be423c46/lib/baby_squeel/table.rb#L115-L116
Hey @NoICE, could you create a new issue? This one is tracking a pretty specific feature request. Plus, if you could fill out the issue template when you create the...
This is definitely an interesting idea. Though, I think it might be really tricky to implement. The problem is that BabySqueel lets Active Record do the heavy lifting in the...
I'd say pretty unlikely. BabySqueel isn't generating those join nodes: Active Record is (with a lot of help from [polyamorous](https://github.com/activerecord-hackery/polyamorous)). I think even if we got this working, it would...
Yes, I agree, but I think this is one of those things that is easier said than done. More than happy to accept a PR.
Great idea, but, I'd rather have a separate package implement JSON types and simply integrate it here. That way, users who don't use BabySqueel could reap the benefits as well....
Yes, this seems like a bug. Would you be willing to submit a pull request? I think the issue probably lies here: https://github.com/rzane/baby_squeel/blob/cf7d7d05f0b563a14417e146627209bae06281fe/lib/baby_squeel/active_record/query_methods.rb#L13
Includes, preload, and eager_load were intentionally excluded. I don't see how baby squeel would actually add any value to those methods, since they just take symbols anyway. But, you're right...