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 implemented at the instance level, the > value has to be updated as well, as after running the code on an instance, > calling the ".counter" method will return an expression, not the value (for > that, I have to refresh the model). Is there a more convenient way to do > this? >
You can use Dataset#returning on PostgreSQL to get the new column value after the update. On other databases, you probably have to refresh. 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/b64bec6b-e930-4a11-b4df-9262179fddf4%40googlegroups.com.
