How can I port my Sqlite database up to GAE?

后端 未结 2 1126
粉色の甜心
粉色の甜心 2021-01-15 02:02

I have a database in SQLite format in my local HD. I would like to get the database up to GAE so that I can use it to create certain cool web-apps. I have browsed around for

相关标签:
2条回答
  • 2021-01-15 02:41

    There is no way that you can do it directly on appengine, as writing to a file is restricted in appengine . I would say, you should export your sqlite database file to some common format like csv , design the model similar to sqlite table schema. Then write a script to load all those sqlite records into dev_sever (development env included in sdk), Then you can easily upload the data from local developement server to google appengine. Have a look at this to know how to export development server data to appengine.

    0 讨论(0)
  • 2021-01-15 02:41

    You can do this with the Google Cloud Storage service (https://developers.google.com/storage/). Your application can read write to files stored in the Google cloud storage, so it is possible to put sqlite files there and read from and write to them.

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