DEV Community

Discussion on: Hanami: Thoughts of a Rails developer

Collapse
 
mculp profile image
Matt Culpepper • Edited

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.