On Thursday, August 13, 2020 at 12:26:43 PM UTC-7, bee...@gmail.com wrote: > > Is there a quick way to decrement a field without having a sub-query? > > .update(field_count: :field_count - 1 >
This will work as is if you use the core extensions. Without the core extensions: DB[:table].where(...).update(field_count: Sequel[:field_count] - 1) 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 sequel-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/1d40ef26-7ca7-4d54-b609-b28b205caf01o%40googlegroups.com.