1

I am trying to get my local sqlite db up and running on GAE. According to this post, there is no way for me to get my local db up there directly. That's why I would like to do something like this:

  1. I get the sqlite db up and running on my dev server with this: http://code.google.com/p/gae-sqlite/
  2. Locally, I translate the db scheme into django model and migrate the db into GAE db.
  3. I use google's way to get my data up to GAE.

So here comes my question. Is there any project that is able to directly translate sqlite db scheme into django model directly?

If not, I guess I will have to write up a code gen.

Thanks

Community
  • 1
  • 1
Winston Chen
  • 6,799
  • 12
  • 52
  • 81

1 Answers1

2

gae-sqlite (now superceded by built-in sqlite support) is designed to run the development appserver backend on sqlite for speed and reduced memory consumption. It doesn't let you import or use your own sqlite schema in App Engine.

You need to dump your data to CSV files, and use the App Engine bulkloader (which you linked to) to bulkload them into the dev_appserver and production environments. Alternately, it is possible to bulkload direct from the sqlite database, but that's a lot more involved, and probably not worth the effort.

Nick Johnson
  • 100,655
  • 16
  • 128
  • 198