How to connect to the local google cloud Datastore db?

纵饮孤独 提交于 2019-12-02 07:27:15

Google Cloud Datastore has a local development server that you can use: https://developers.google.com/datastore/docs/tools/devserver

You can create and start the local datastore using the gcd tool which is linked to in the doc above.

If you use DatastoreHelper.getDatastoreFromEnv(); to build your Datastore, you can tell it to connect to your local database by exporting the env variable DATASTORE_HOST:

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