SQLAlchemy - SQLite for testing and Postgresql for development - How to port?

前端 未结 3 1179
無奈伤痛
無奈伤痛 2020-12-21 01:26

I want to use sqlite memory database for all my testing and Postgresql for my development/production server.

But the SQL syntax is not same in both dbs. for ex: SQLi

3条回答
  •  天涯浪人
    2020-12-21 01:40

    Although we started with sqllite for our testing environment we are seriously looking to having postgres running for each developer. We have scripts that build the test database that our unittests run against, and we have a 'development' version that the devs use.

    We investigated running postgres 'in memory' on ramdisk, but this discussion: http://dbaspot.com/forums/postgresql/395602-memory-postgresql-database.html suggests that it isn't necessary.

    We haven't run into any problems yet, but it is still early in the development process and we haven't had to do anything too fancy yet.

    zzzeek points out some items that will probably trip us up soon :(

    Best make the move now....

提交回复
热议问题