News for hackers. Stuff that matters.
Re:Selecting All Columns Except One in PostgreSQL by anderse on Saturday May 19, 2018 @10:41AM (#17108063)
Probably something like:

  to_select = fields - [:created_at, :updated_at]
Though there’s always a slight uncomfort in not being 100% sure the array elements aren’t strings, so might throw in a cast here just to be sure.

There are no comments on this comment yet.