Re: SQLite on development, MySQL on production?

Alexey Verkhovsky
Fri, 14 Oct 2005 04:49:05 -0000

Patrick McCafferty wrote:

> A couple problems I see with this are that the DDL for SQLite and
> MySQL are pretty different, so it''s not a simple matter of dumping
> db/development.sql into SQLite to create the schema.

You may want to look at Instiki-AR branch, it uses ERB to generate a
schema for Postgres, MySQL or SQLite in a compatible way. Of course,
your original schema is limited to datatypes and declarations that all
three databases can support.

If you use SQLite, I strongly recommend you to use SQLite 3 (better
compatibility) and put your SQLite databases, at least the one for unit
tests, on a RAMDrive (three times faster).

Best regards,
Alexey Verkhovsky