HNHacker News
TopNewBestAskShowJobs

fwbrasil

30 karma · joined March 29, 2013

submissionscomments
fwbrasil··on Quill – Compile-Time Language Integrated Query for Scala
Yes, quill is not an ORM. The case classes need to be flat as the database rows are, so relationships need to be mapped using reference fields (ids) to other rows (case classes).

There's no "one size fits all". If quill's abstraction level is not enough for your domain, I suggest trying out http://activate-framework.org.

fwbrasil··on Quill – Compile-Time Language Integrated Query for Scala
Interesting! I was actually considering implementing a record system when designing quill, but wasn't sure if it'd be convenient to the users since it requires learning one more DSL.

Currently, quill provides two alternatives:

1. Select tuples instead of case classes

2. As the mapping case classes are simple to create, it's possible to define an additional one only with the fields the user wants to select in the query.

This means that's possible select any subset of the database structure. I still wonder if records would be a better solution though.

fwbrasil··on Clump – A library for expressive and efficient service composition
Thanks for the feedback, I'll update the readme.