I have just started with squeryl and have no answer for how write a query like that
SELECT ref label
FROM x_table
WHERE ref like x% or lable like x%
where x
is some value from the user, especially I haven't found analog of the sign %
in squeryl or how can I use it.
My version:
val products = from(AppDB.productTable) (
s => where ((s.label like value) or (s.ref like value)) select(s)
)
doesn't work correct.
val value : Option[String]
I get from the user.