从AppEngine数据库导出到本地开发数据库? [英] Export from AppEngine database to the local development database?
本文介绍了从AppEngine数据库导出到本地开发数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法将AppEngine数据库上的数据导出到开发服务器(用于测试目的等)?
Is there a way to export the data on my AppEngine database to the development server (for testing purposes etc.) ?
推荐答案
是的!查看Google的上传和下载数据
Yes! Check out Google's "Uploading and Downloading Data"
如果您希望在上传
之前测试数据
如何与应用程序协同工作,则可以加载它到
开发服务器中。使用--url
选项将工具指向
开发服务器URL。例如:
If you'd like to test how your data works with the app before uploading it, you can load it into the development server. Use the --url option to point the tool at the development server URL. For example:
appcfg.py upload_data --config_file=album_loader.py --filename=album_data.csv --kind=Album --url=http://localhost:8080/remote_api <app-directory>
关于上传和下载所有数据的小节也值得一看。
这篇关于从AppEngine数据库导出到本地开发数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文