Friday, 15 August 2014

google app engine - GQL Select (including ID) Filter by ID -



google app engine - GQL Select (including ID) Filter by ID -

i looking examples wherein in gql can select attributes besides id , filter id well.

the pseudo code of want accomplish this:

myresults = db.gqlquery("select __key__, attr1, attr2 mytable" "where __key__ > key('mytable',:last_id) "order id desc limit 100")

i saw examples wherein key, need iterate on keys record.

is there way me record collection based on key/id criteria?

thanks in advance

the way you're using __key__ implies keys new records greater created (which not case). if want filter creation time, you'll need add together field this, set upon creation of record.

google-app-engine python-2.7 gql gqlquery

No comments:

Post a Comment