google-cloud-datastore

Webservice credentials - OpenID/Android AccountManager?

一个人想着一个人 提交于 2019-11-26 07:59:37
问题 I\'m building a webservice and would like to use the user\'s google account credentials. The service runs on GAE and will have a web client and an Android native client. This is my first attempt of something like this and I\'ve been reading about OpenID and the Android AccountManager library. I\'m still not sure what are my options in terms of storing the users in my Datastore. What Identifier should I use ? Is it possible to use OpenID on a native Android application ? Any help and/or

How to delete all datastore in Google App Engine?

血红的双手。 提交于 2019-11-26 07:53:18
问题 Does anyone know how to delete all datastore in Google App Engine? 回答1: If you're talking about the live datastore , open the dashboard for your app (login on appengine) then datastore --> dataviewer, select all the rows for the table you want to delete and hit the delete button (you'll have to do this for all your tables). You can do the same programmatically through the remote_api (but I never used it). If you're talking about the development datastore , you'll just have to delete the

re-using an entity's ID for other entities of different kinds - sane idea?

谁都会走 提交于 2019-11-26 06:48:57
问题 My (python) app is using several entities, many of them in a 1:1 relationship. For example: class Main(ndb.Model): field1 = ndb.StringProperty() #peer_key = ndb.KeyProperty(kind=\'Peer\') class Peer(ndb.model): field2 = ndb.IntegerProperty() #main_key = ndb.KeyProperty(kind=\'Main\') Some of the Main entities may have a Peer entity (created after the Main entity) in exactly a 1:1 relationship. I was thinking that at creation of the Peer entity I could simply specify a numerical ID equal to

Google App Engine: Is it possible to do a Gql LIKE query?

亡梦爱人 提交于 2019-11-26 03:29:29
问题 Simple one really. In SQL, if I want to search a text field for a couple of characters, I can do: SELECT blah FROM blah WHERE blah LIKE \'%text%\' The documentation for App Engine makes no mention of how to achieve this, but surely it\'s a common enough problem? 回答1: BigTable, which is the database back end for App Engine, will scale to millions of records. Due to this, App Engine will not allow you to do any query that will result in a table scan, as performance would be dreadful for a well