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
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
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
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