Maybe I haven't spent enough time with Hanami repositories and Sequel yet, but I didn't really see a simple way of DRYing the parts of queries, so I ended up writing query methods having many parts in common.
I also remember struggling with writing a repository method that'd return an additional column based on GROUP BY clause. It took me quite a while to solve it. It'd be cool if the docs included a bit more complex usage examples like this one.
I also had this exact same struggle. I spent a whole day trying to figure out a query. There's definitely a learning curve there.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I also had this exact same struggle. I spent a whole day trying to figure out a query. There's definitely a learning curve there.