Can I use SQLite libraries on google app engine?

后端 未结 2 990
北恋
北恋 2021-01-20 18:13

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 c

2条回答
  •  梦毁少年i
    2021-01-20 19:01

    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.

提交回复
热议问题