Releases: limansky/mongoquery
Releases · limansky/mongoquery
Release 0.7
Release 0.6
Maintenance release. Add Scala 2.12 support.
Release 0.5
This release provides a runtime parser which can be useful for testing, and for converting JSON to BSON.
BSONParser.parse("{foo : \"bar\", xxx : 42 }")
Other notable changes:
- qouted field names (like
{ "test" : "me" }
) support. - better regex support.
Also different bugs were fixed.
Release 0.4
The main achievement of this release is adding mqt
interpolator for type checked queries. It allows you to check if the query is applicable for your model case class.
For example:
case class Company(country: String, phone: List[String])
val british = companies.find(mqt"{ country : 'UK' }"[Company])
In this release it checks following things:
- field is exists in provided class
- in case of nested fields checks the nested classes
- if field accessed as a list checks if the class is traversable
- it supports
Option
s as well
Release 0.3
This release provides several bug fixes and new features:
- MongoDB operators are checked now. If operator is unknown, the code does not compile and provides a suggestion.
- Double values can be entered in exponential form.
- Null literal is supported.
Release 0.2
First public release. Compile time mq interpolator is implemented.