-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement convenient DSL for DBObject #51
Comments
+1 |
This would be best implemented as a DSL to create Spray JSON |
@janm399 ! Comment() This could be awesome... your code can be entirely independent of ScalaD and it'll still work like a charm. i.e. if this ("username" equals username) &&
("expiryDate" lessThan now) were converted into a {
"username": USERNAME,
"expiryDate": {"$lt": NOW}
} where USERNAME and NOW are and also, if we're wanting to do things like findModify it is a simple case of extending the CRUD traits to take in more |
I know I'm not working on the project, but I couldn't resist to chime in :D |
@adinapoli You're more than welcome to chip in any time; I'd love to have contributions and ideas. I'll sketch out my DSL this AM. |
@janm399 sweeet - is it a Spray JSON builder? |
Implement implicit conversions to
DBObject
using some convenient DSL so that you can use it nicely in theMongoSearch.searchAll
and others.The ideal implementation will allow you to write something like
The text was updated successfully, but these errors were encountered: