如何在Google App Engine上下载所有数据存储实体? [英] How to download all datastore entities on Google App Engine?

查看:125
本文介绍了如何在Google App Engine上下载所有数据存储实体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读 GAE docs ,我似乎无法弄清楚如何下载所有的实体数据。



我想做的是下载整个事情一个大的TSV文件(或者我可以很容易地嵌入到一个),所以我可以将我的各种实体导入到一个电子表格中并与他们进行对比。



但是我被卡住了在起跑门。我不明白文档的头几句:本文档适用于使用主/从数据存储的应用程序,如果您的应用程序使用High Replication数据存储... - 我'我甚至不知道我有什么,或者我会怎么说。



假设我有更简单的主/从,文档继续:...你可以通过安装Java版本的remote_api处理程序...使用Python appcfg.py工具,但是,再次,我不太清楚它是什么意思,或者我在哪里找到这个appcfg.py工具。 p>

对于这样一个n00b的问题,对不起,但是有没有一些漫步?我只想下载我的资料储存库!



谢谢!

解决方案

主/从属是默认(现在),所以这几乎肯定是你正在使用的。您可以在 https://appengine.google.com/ - > app-id - >管理 - >应用程序设置 - >数据存储复制选项。



要下载数据,请先在安装Remote API for Java ,然后使用 appcfg.py下载数据

  appcfg.py download_data  - 应用= LT;应用ID> --url = http://< appname> .appspot.com / [remote_api_path] --filename =< data-filename> 


I've read the GAE docs, and I can't seem to figure out how to download all my entity data.

What I'd love to do is download the whole thing as a big TSV file (or something I can easily munge into one), so I can import my various entities into a spreadsheet and fiddle with them.

But I'm stuck at the starting gate. I don't understand the first few bits of the docs: "This document applies to apps that use the master/slave datastore. If your app uses the High Replication datastore..." -- I'm not even sure which I have, or how I would tell.

Assuming I have the simpler master/slave, the docs continue: "...you can use the Python appcfg.py tool by installing the Java version of the remote_api handler..." but, again, I'm not quite sure what they mean or where I find this appcfg.py tool.

Sorry for such a n00b question, but is there some sort of walk-through? I just want to download my datastore!

Thanks!

解决方案

Master/Slave is the default (for now), so that's almost certainly what you're using. You can confirm at https://appengine.google.com/ -> app-id -> Administration -> Application Settings -> Datastore Replication Options.

To download your data, first install Remote API for Java, then use appcfg.py to download data:

appcfg.py download_data --application=<app-id> --url=http://<appname>.appspot.com/[remote_api_path] --filename=<data-filename>

这篇关于如何在Google App Engine上下载所有数据存储实体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆