News for hackers. Stuff that matters.
Re:Literate SQL by paulddraper on Sunday June 25, 2017 @01:02PM (#14630955)
I can sympathize.

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.

    sql"SELECT * FROM users WHERE email IN ($emails)".asList[User]()
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]?

[1]: http://slick.lightbend.com/doc/3.2.0/sql.html

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...