Is it possible to use LIKE clause with String Interpolation in Anorm?
// e.g. this doesn\'t work SQL\"SELECT * FROM users WHERE last_name LIKE $lastName%\".a
If expected WHERE clause is something like WHERE last_name LIKE '%pattern%' you will have to prepare string before passing it as argument.
WHERE last_name LIKE '%pattern%'
SQL"""SELECT * FROM users WHERE last_name LIKE ${"%"+lastName+"%"}""". as(userParser.*)