Export from AppEngine database to the local development database?

后端 未结 3 1930
小鲜肉
小鲜肉 2020-12-30 10:28

Is there a way to export the data on my AppEngine database to the development server (for testing purposes etc.) ?

相关标签:
3条回答
  • 2020-12-30 10:42

    Yes! Check out Google's "Uploading and Downloading Data"

    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>
    

    The subsection on uploading and downloading all data is also worth looking at.

    0 讨论(0)
  • 2020-12-30 11:00

    Not yet it seems

    Of course you can go pulling the data yourself, one batch at a time...

    0 讨论(0)
  • 2020-12-30 11:02

    Yes we can download all data from google app engine and can upload to datastore but sometimes uploading data to local development server is painfull because of errors. App Engine SDK versioning diffrences occurs this like problems. For example i developed an app 1 year ago. Today, i want update it. I downloaded all data from Google App Engine real servers. But i can't upload its to local development server. You know, we using EntityLoader class for this operation. Entity Class importing db module, but SDK throws, "no module named by db".

    I suggest for App Engine lovers that; save your first test data for future. Don't think that i will download all datum for testing future. Save your own test data with Sqlite support. And save your deveopment enviromenment version for future. SDK Version updating sometimes causing painfully times for developers

    0 讨论(0)
提交回复
热议问题