Using Google Cloud Datastore with NDB API?

老子叫甜甜 提交于 2019-12-01 21:14:07

问题


There is a lot of info on using NDB API with Google App Engine Datastore but I can't find any info on how to use NDB with Google Cloud Datastore. The only module I found is googledatastore which is very primitive library.

How is App Engine Datastore different from the Cloud Datastore? Is NDB available for the Cloud Datastore?


回答1:


NDB support outside of App Engine (using Google Cloud Datastore) is currently in development.

UPDATE: Check out the NDB development discussion on GitHub.




回答2:


You might want to try using gcloud.datastore (pip install gcloud).

Docs: http://googlecloudplatform.github.io/gcloud-python/

Code: https://github.com/GoogleCloudPlatform/gcloud-python



来源:https://stackoverflow.com/questions/27809756/using-google-cloud-datastore-with-ndb-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!