eigengo / scalad

Scala Data access for NoSQL databases
47 stars 15 forks source link

Implicit String conversion with serialised format #44

Closed fommil closed 11 years ago

fommil commented 11 years ago

It is nice to have a String => DBObject implicit in scope, as it means queries can be written as Strings.

However, when passing parameters to the query (e.g. using String.format) one can often forget to serialise the object manually.

This RFE is to come up with an implicit approach that auto serialises the queries – even wrapping text strings with quotation marks if needed, and inserting some constants such as {$exists: true}.