Closed Ladas closed 6 years ago
@tenderlove could you advise? Thank you in advance :-)
Per #523, Arel development is moving to rails/rails.
If this issue is still relevant, please consider reopening it over there. (Note that the Rails repository does not accept feature request issues, and requires reproduction steps that rely on Active Record's documented API.)
Hello,
I would like to use arel to build these 3 batch queries, I am now building manually for PG 9.5:
1) INSERT ON CONFLICT UPDATE with a where condition (UPSERT)
2) UPDATE FROM VALUES
3) SELECT using IN with nested array
Is something like this already supported in Arel, I couldn't find it, would it make sense to add it? There are few gems supporting at least the upsert, https://github.com/zdennis/activerecord-import and https://github.com/jesjos/active_record_upsert. But I don't see any for the other queries. Also we would prefer to use Arel.
Can anybody advise?