aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: a0d1c1191168ac92240f7004acaa4a982e58152a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# REST Query library

Allows to read queries from the REST requests (query parameters) and map them to the typed SQL Slick queries.
Supports ANDs and ORs, pagination and sorting.

Queries can be build in the code as well (e.g., for testing):

```
SearchFilterExpr.Atom.NAry("id", In, objects.map(x => Long.box(x.id)))
```

or

```
SearchFilterExpr.Union(Seq(
  SearchFilterExpr.Atom.Binary("status", Eq, "New"),
  SearchFilterExpr.Atom.Binary("status", Eq, "Verified")
)
```