What are the viable database abstraction layers for Python

后端 未结 8 935
遇见更好的自我
遇见更好的自我 2020-12-28 17:51

I\'m starting to get involved in an open source project Gramps which is exploring switching their backend from BSDDB to a relational database. Either SQLite or MySQL we have

8条回答
  •  不思量自难忘°
    2020-12-28 18:22

    When I started converting a legacy app to use an ORM I looked into SQLObject and SQLAlchemy. At first I went with SQLObject because it looked familiar (past Django experience) and SQLAlchemy seemed complicated. After about 2 hours I started to hit walls with SQLObject. I then looked at SQLAlchemy again and was instantly rewarded. Not only did it understand and map every weird table in the database, it even could do the even weirder lookups I had to do later!

提交回复
热议问题