[英]App Engine: Copy live Datastore to local Dev Datastore
This is a question that has been answered many times however the answer seems to always change. 这个问题已经回答了很多次,但是答案似乎总是在变化。
I am working in Windows using Java and have a local Datastore instance that I would like to be a replica of production. 我正在使用Java在Windows中工作,并且有一个本地数据存储实例,我想成为生产的副本。
There is two previous answers:- 以前有两个答案:
How to create local copy of GAE datastore? 如何创建GAE数据存储的本地副本?
App Engine: Copy live Datastore to local dev Datastore (that still works) App Engine:将实时数据存储区复制到本地开发数据存储区(仍然有效)
However both seem to be out of date. 但是,两者似乎都已过时。 Can anyone at the least point me in the right direction? 至少有人能指出我正确的方向吗?
您可以尝试切换到数据存储区模拟器,而不使用开发服务器的仿真(该软件应与最新的本地开发服务器版本兼容,至少应与gcloud SDK中包含的版本一起使用),然后您可以使用在模拟器中导入数据的官方方法,请参阅将实体导入本地GCP数据存储模拟器 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.