I'm new to Slick 3. I want to filter composite primary key as follows that query by using Slick.
SELECT * FROM test_table WHERE (pk1, pk2) IN (("a1", "a2"), ("b1", "b2"));
I know that Slick can filter multiple conditions like
TestTableQuery.filter(t => t.pk1 === "a1" && t.pk2 === "a2")
Additionally, I know that Slick can filter multiple values(That means IN caluse.) like
val pkSeq = Seq("a1", "b1")
TestTableQuery.filter(t => t.pk1.inSet(pkSeq))
So, I want to write as describe below if it's possible.
val pk1AndPk2Seq = Seq(("a1", "a2"), ("b1", "b2"))
TestTableQuery.filter(t => (t.pk1, t.pk2).inSet(pk1AndPk2Seq))
Is there something way? Thank you.