Re:Literate SQL
by Nullabillity on Sunday June 25, 2017 @02:07PM
(#14631293)
Since you're already using Slick, what's the difference between Relate and Slick's native SQL literals[1]?
Re:Literate SQL
by paulddraper on Sunday June 25, 2017 @03:02PM
(#14631557)
Or Anorm [1] for that matter. They're all pretty similar in the idea of typed Scala string interpolation.
[1]: https://www.playframework.com/documentation/2.5.x/ScalaAnorm...
For me, that's Scala JVM on the server, ScalaTags/ScalaCSS/ScalaJS in the web browser, Slick for the ORM, and SBT for the build system. The bliss of learn once, program anywhere.
When this hits reality though, I use Relate https://github.com/lucidsoftware/relate (disclaimer: I'm a contributor)
It's SQL, but with minimal syntactic overhead.