2 ms·
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 b
by paulddraper 9y ago
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 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]()
- Nullabillity 9y agoSince 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 http://slick.lightbend.com/doc/3.2.0/sql.html
- paulddraper 9y agoOr 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#sql-queries-using-string-interpolation https://www.playframework.com/documentation/2.5.x/ScalaAnorm...