Well, Found the guy: *Sequel.join* .left_outer_join(:files, path: Sequel.join([Sequel[:folders][:path], *append_str*]))
Did the job. Let me know if this is a wrong approach :) On Sunday, March 7, 2021 at 9:38:37 PM UTC+3 [email protected] wrote: > Hi Jeremy, > > I have a Sequel query and in one point I use left outer join like this: > > ... > .left_outer_join(:files, path: Sequel[:folders][:path]) > ... > > Basically, I use "*path*" column from "*folders*" table. But the thing > is, I have also a local string variable like this: > > ... > *append_str *= '/another' > ... > .left_outer_join(:files, path: Sequel[:folders][:path]) > ... > > Now what I want to do is, append this string to "*path*". In lamest way > like this: > > .left_outer_join(:files, path: Sequel[:folders][:path] + *append_str*) > > But i want to append this string what comes from that join. How can I > concat this value on queries? > > > Thanks, > Dennis. > > > > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/33683366-d846-4d50-b580-6483ed4ae896n%40googlegroups.com.
