Slick: Is there a way to create a WHERE clause with a regex?
问题 I look for a slick equivalient to select * from users where last_name ~* '[\w]*son'; So for example when having the following names in the database: first_name | last_name ---------------------- Tore | Isakson John | Smith Solveig | Larsson Marc | Finnigan The result would be first_name | last_name ---------------------- Tore | Isakson Solveig | Larsson My current solution is to interpolate this with an SQLActionBuilder like val pattern = "[\\w]*son" val action = sql""" SELECT * FROM users