Slick: create query conjunctions/disjunctions dynamically

后端 未结 4 741
难免孤独
难免孤独 2020-12-28 11:04

I\'m trying to create a typesafe dynamic DSL for a Slick table but not sure how to achieve this.

Users can post filters to the server by sending filters in form/json

4条回答
  •  甜味超标
    2020-12-28 11:14

    "fold" is already the keyword here. Or "reduce" since you don't need a seeding value. buildFilter.reduce(_ && _)

提交回复
热议问题