3 ms·
Thats true, actually I mostly code in Scala and there are many SQL libraries that allow you to do: sql"""SELECT * FROM users WHERE username = $username"""
by merb 10y ago
Thats true, actually I mostly code in Scala and there are many SQL libraries that allow you to do:
sql"""SELECT * FROM users WHERE username = $username"""
Actually that looks like a problem at first, however the library will actually create a parameterised query out of it.
It's pretty cool since now you don't need to think about (http://slick.lightbend.com/doc/3.1.1/sql.html#string-interpolation http://slick.lightbend.com/doc/3.1.1/sql.html#string-interpo... or https://github.com/playframework/anorm/blob/master/docs/manual/working/scalaGuide/main/sql/ScalaAnorm.md#sql-queries-using-string-interpolation https://github.com/playframework/anorm/blob/master/docs/manu...)