Following is a sample code .
57] pry(main)> Stock.association_join(:exchange).qualify.select_append(
Sequel[:exchange][:name].as(:exchange_name))
#<Sequel::SQLite::Dataset: "SELECT `stocks`.*, `exchange`.`name` AS
'exchange_name' FROM `stocks` INNER JOIN `exchanges` AS 'exchange' ON
(`exchange`.`id` = `stocks`.`exchange_id`)">
It works as expected, but, how to change `select_append(Sequel[:exchange][
:name].as(:exchange_name)) ` part to rewriite with indentifier alias ?
Thank you.
在2021年6月12日星期六 UTC+8 上午3:08:13<Billy Zheng> 写道:
>
> I see a answer for Identifier aliases
> <https://github.com/jeremyevans/sequel#identifier-aliases> in SO
>
> https://stackoverflow.com/a/27758411/749774
>
> but after some search, i could not find out the official document for this.
>
> and i don't understood the two/three underscore what means, it those usage
> was available on sqlite3 ?
>
> Thank you.
>
>
>
--
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/b6d24976-ffc2-4c2b-a1aa-e54b25da6f00n%40googlegroups.com.