On Sun, Feb 7, 2021 at 1:01 PM [email protected] <[email protected]>
wrote:

> I want to be able to take an array of numbers and turn it into rows so I
> can join with something else.
>
> So SOmething like db.from(Sequel.function(:UNNEST,
> Sequel.function(::ARRAY, [1,2,3])).as(:id_table))
>
> Something like that
>

I'm sorry if my previous was unclear.  What SQL do you want to generate?
SQL, not Sequel code.  Post the SQL you want to generate, and then I can
probably determine how to generate it with Sequel.  If you do not know what
SQL to generate, determine that first by reading the PostgreSQL
documentation.

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/CADGZSSf_%2B0QBNJA3KX_vxZPkXZahrJUbKKJMP%3DF2UKP7o0b7CA%40mail.gmail.com.

Reply via email to