column increment/decrement

2020-01-26 Thread Tiago Cardoso
Hi there, I've been struggling to find examples on how to do atomic increment/decrement operations on a column, which may or may not update the "updated_at" timestamps. Specifically, something like the AR#increment and AR#decrement methods, which result in smith like this: "UPDATE this_table

Re: column increment/decrement

2020-01-26 Thread Tiago Cardoso
thx, that is helpful. I can see myself implementing a potential plugin implementing the aforementioned increment/decrement methods, with or without the timestamp updates. However, in order for these to be implemented at the instance level, the value has to be updated as well, as after running

Re: column increment/decrement

2020-01-26 Thread Jeremy Evans
On Sunday, January 26, 2020 at 10:17:23 AM UTC-8, Tiago Cardoso wrote: > > thx, that is helpful. I can see myself implementing a potential plugin > implementing the aforementioned increment/decrement methods, with or > without the timestamp updates. > > However, in order for these to be

Re: column increment/decrement

2020-01-26 Thread Jeremy Evans
On Sunday, January 26, 2020 at 4:48:26 AM UTC-8, Tiago Cardoso wrote: > > Hi there, > > I've been struggling to find examples on how to do atomic > increment/decrement operations on a column, which may or may not update the > "updated_at" timestamps. > > Specifically, something like the