1

How do you perform the following SQL operation in Slick:

select * from tablename where label in ('A', 'B');

Haven't been able to find in the documentation or elsewhere.

Geekster
  • 491
  • 1
  • 8
  • 19

1 Answers1

2

The Slick operator is inSet. (I assume in collided with something.)

For example:

tablename.filter(_.label inSet Set("A", "B")).result
Michael Lorton
  • 43,060
  • 26
  • 103
  • 144