Re: Can I alias the join table with association_join?

2020-01-14 Thread Jeremy Evans
On Tuesday, January 14, 2020 at 2:53:23 PM UTC-8, Shane Cavanaugh wrote:
>
> I have a model association through join table. When using 
> `association_join` with the association multiple times, Sequel will append 
> `_[integer]` to the join table; e.g. `joined_table...joined_table_0`. Is is 
> possible to alias each instance of the join table without explicitly 
> declaring each join?
>

 I'm not sure what you are asking for.  Do you want to use an alias that 
you specify in each call to association_join (as opposed to having to 
Sequel generate one automatically)?  If that isn't what you want, could you 
post a small self contained example and provide details about what behavior 
you want or SQL you want to generate.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sequel-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/7e40ae2f-e82f-46c1-9d10-b21c04407a75%40googlegroups.com.


Can I alias the join table with association_join?

2020-01-14 Thread Shane Cavanaugh
I have a model association through join table. When using 
`association_join` with the association multiple times, Sequel will append 
`_[integer]` to the join table; e.g. `joined_table...joined_table_0`. Is is 
possible to alias each instance of the join table without explicitly 
declaring each join?

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sequel-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/d6d63388-8b47-46e3-a8a2-e0c9277364a4%40googlegroups.com.