Do you guys have optimistic locking on your roadmap?
Yes, it’s definitely something we want to have, but it’s hard to say when somebody will get to implementing it, so help here is highly appreciated.
If no, do you have any examples of writing that sort of plugin I could look at?
A PR with a working plugin would be accepted, really. Here’s some useful info:
Pagination plugin - this is a pretty extensive plugin so it shows a lot of extension points (both at class and instance level)
Here is an example how plugins are registered, so that you can do
use :your_plugin in your relation classes
I would recommend looking into Sequel API to see which
Dataset methods could be useful here (if any), then implementing it in your code to see what works well, and eventually it could be extracted into a rom-sql plugin.
Let me know if you have any more questions, and sorry for being so slow with replies. Busy dry-rb times for me