Between query equivalent on App Engine datastore?
问题 I have a model containing ranges of IP addresses, similar to this: class Country(db.Model): begin_ipnum = db.IntegerProperty() end_ipnum = db.IntegerProperty() On a SQL database, I would be able to find rows which contained an IP in a certain range like this: SELECT * FROM Country WHERE ipnum BETWEEN begin_ipnum AND end_ipnum or this: SELECT * FROM Country WHERE begin_ipnum < ipnum AND end_ipnum > ipnum Sadly, GQL only allows inequality filters on one property, and doesn't support the BETWEEN