Wednesday, June 20, 2012

App Engine : Using Datastore

https://developers.google.com/appengine/docs/python/gettingstartedpython27/usingdatastore
https://developers.google.com/appengine/docs/python/datastore/entities#Python_Ancestor_paths


To query,

1. db.GqlQuery
2. YOURMODEL.gql
3. Datastore API ( all(), fileter()...)


Entities in the Datastore form a hierarchically structured space similar to the directory structure of a file system.

[Note 20131115] this is out-of-date, need to use ndb instead, you can treat parent as table, so you need to specify it to ensure the data goes to same group

No comments:

Related Posts Plugin for WordPress, Blogger...