3 ms·
Or even: User.where(:name => "david", :age => "> 29").limit(20) Although this way you'd have to parse the '>' out of the second K-V.
by jallmann 16y ago
Or even:
User.where(:name => "david", :age => "> 29").limit(20)
Although this way you'd have to parse the '>' out of the second K-V.
- xentronium 16y agoParsing the value is not the best idea (you have to watch the types and still cannot apply the comparison query to string columns). DataMapper resolves the issue via :age.gt => 29 and Sequel got its stylish filter{age > 29} syntax.