Can I use SQLite libraries on google app engine?

雨燕双飞 提交于 2019-12-20 02:16:22

问题


I'm currently using Google Datastore for storing data. I want to keep an offline version in the form of sql database. Is it possible to use sqlite on google app engine to convert datastore into sql database?


回答1:


No, it is not possible to use sqlite on AppEngine.

Currently there is no option to convert data from the AppEngine datastore to a SQL database.




回答2:


You can do this locally since Python Development Server v1.7.6 (link outdated)

https://developers.google.com/appengine/docs/python/tools/old_devserver#Using_the_Datastore

SQLite is now used as the backend for your local Datastore stub. Running an app in the new Development Server for the first time will automatically migrate any existing Datastore files into the SQLite format.

New description from Google:

https://cloud.google.com/appengine/docs/python/tools/devserver

The development web server simulates the App Engine datastore using a SQLite-backed local datastore on your computer.

See also this example.



来源:https://stackoverflow.com/questions/17555490/can-i-use-sqlite-libraries-on-google-app-engine

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