Support the creation of queries from strings #7

Open
boenrobot opened this Issue Jan 29, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Member

boenrobot commented Jan 29, 2012

While the basic functionality of the Query class works for most cases, it can quickly become difficult to use (or at the very least lead to verbose code) as the size of the query grows.

A more intuitive approach would be the creation of a query from a string. The string itself should use the familiar syntax from shell's "where" argument... with some reduced functionality of course (e.g. there's no regex in queries yet).

Among other things, I'm still wondering what to call it though... Query::parse(), Query::expression(), Query:fromString()...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment