Criteria4s is a simple domain-specific language (DSL) to define criteria and predicate expressions for any data stores by using Scala type class mechanisms in a type-safe way. It pretends to be agnostic to any data store, and it is extensible to support any kind of data stores.
Apache License 2.0
16
stars
1
forks
source link
Complete extensions of predicate functions by using boolean symbols #8
Example:
equals
->:==
geq
->:>=
and
->:&
Using
:
before the symbol is just an example to avoid confusing with Scala's boolean operators